From 60a66003c8bf2cd8657429fb60db850f69fe3361 Mon Sep 17 00:00:00 2001 From: Florian Verdonck Date: Mon, 16 Jun 2025 14:50:41 +0200 Subject: [PATCH 1/2] Update Stdlib_Iterator.resi --- runtime/Stdlib_Iterator.resi | 2 -- 1 file changed, 2 deletions(-) diff --git a/runtime/Stdlib_Iterator.resi b/runtime/Stdlib_Iterator.resi index 3588626e59..9c107ab582 100644 --- a/runtime/Stdlib_Iterator.resi +++ b/runtime/Stdlib_Iterator.resi @@ -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" @@ -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" From cd5b9f9be13e7364bc64729435550369f58f6ff4 Mon Sep 17 00:00:00 2001 From: Florian Verdonck Date: Mon, 16 Jun 2025 15:29:48 +0200 Subject: [PATCH 2/2] Remove duplicate parentheses --- runtime/Stdlib_Iterator.resi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/Stdlib_Iterator.resi b/runtime/Stdlib_Iterator.resi index 9c107ab582..e1e16fbf9e 100644 --- a/runtime/Stdlib_Iterator.resi +++ b/runtime/Stdlib_Iterator.resi @@ -127,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.