From 0aa02c4b4a2fd537666862f01079aedd2f306047 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Tue, 9 Aug 2022 09:43:10 -0600 Subject: [PATCH] remove no longer necessary `.indexed()` methods --- spec.html | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/spec.html b/spec.html index a15d252..26757d8 100644 --- a/spec.html +++ b/spec.html @@ -523,24 +523,6 @@

Iterator.prototype.drop ( _limit_ )

- -

Iterator.prototype.indexed ( )

- - 1. Let _iterated_ be ? GetIteratorDirect(*this* value). - 1. Let _closure_ be a new Abstract Closure with no parameters that captures _iterated_ and performs the following steps when called: - 1. Let _index_ be 0. - 1. Repeat, - 1. Let _next_ be ? IteratorStep(_iterated_). - 1. If _next_ is *false*, return *undefined*. - 1. Let _value_ be ? IteratorValue(_next_). - 1. Let _pair_ be CreateArrayFromList(« 𝔽(_index_), _value_ »). - 1. Let _completion_ be Completion(Yield(_pair_)). - 1. IfAbruptCloseIterator(_completion_, _iterated_). - 1. Set _index_ to _index_ + 1. - 1. Return CreateIteratorFromClosure(_closure_, ~Iterator Helper~, %IteratorHelperPrototype%). - -
-

Iterator.prototype.flatMap ( _mapper_ )

@@ -802,24 +784,6 @@

AsyncIterator.prototype.drop ( _limit_ )

- -

AsyncIterator.prototype.indexed ( )

- - 1. Let _iterated_ be ? GetIteratorDirect(*this* value). - 1. Let _closure_ be a new Abstract Closure with no parameters that captures _iterated_ and performs the following steps when called: - 1. Let _index_ be 0. - 1. Repeat, - 1. Let _next_ be ? Await(? IteratorNext(_iterated_)). - 1. If ? IteratorComplete(_next_) is *true*, return *undefined*. - 1. Let _value_ be ? IteratorValue(_next_). - 1. Let _pair_ be CreateArrayFromList(« _index_, _value_ »). - 1. Let _completion_ be Completion(Yield(_pair_)). - 1. IfAbruptCloseAsyncIterator(_completion_, _iterated_). - 1. Set _index_ to _index_ + 1. - 1. Return CreateAsyncIteratorFromClosure(_closure_, ~Async Iterator Helper~, %AsyncIteratorHelperPrototype%). - -
-

AsyncIterator.prototype.flatMap ( _mapper_ )

AsyncIterator.prototype.flatMap is a built-in async generator function which, when called, performs the following steps: