Skip to content

Update Stdlib_Iterator.resi #7552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions runtime/Stdlib_Iterator.resi
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ mapKeysAsArray->assertEqual(["someKey", "someKey2"])

Since March 2025, this feature works across the latest devices and browser versions.
This feature might not work in older devices or browsers.
```
*/
@send
external toArray: t<'a> => array<'a> = "toArray"
Expand Down Expand Up @@ -128,7 +127,7 @@ external forEach: (t<'a>, 'a => unit) => unit = "forEach"
external ignore: t<'a> => unit = "%ignore"

/**
`drop((iterator, n))` returns a new iterator helper object that skips the given number of elements at the start of this iterator.
`drop(iterator, n)` returns a new iterator helper object that skips the given number of elements at the start of this iterator.

See [Iterator.prototype.drop](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Iterator/drop) on MDN.

Expand All @@ -145,7 +144,6 @@ seq->Iterator.next->assertEqual({done: false, value: Some(3)})

Since March 2025, this feature works across the latest devices and browser versions.
This feature might not work in older devices or browsers.
```
*/
@send
external drop: (t<'a>, int) => t<'a> = "drop"
Expand Down