Skip to content

Commit

Permalink
remove no longer necessary .indexed() methods
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Aug 9, 2022
1 parent 7b5e897 commit 0aa02c4
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions spec.html
Expand Up @@ -523,24 +523,6 @@ <h1>Iterator.prototype.drop ( _limit_ )</h1>
</emu-alg>
</emu-clause>

<emu-clause id="sec-iteratorprototype.indexed">
<h1>Iterator.prototype.indexed ( )</h1>
<emu-alg>
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(&laquo; 𝔽(_index_), _value_ &raquo;).
1. Let _completion_ be Completion(Yield(_pair_)).
1. IfAbruptCloseIterator(_completion_, _iterated_).
1. Set _index_ to _index_ + 1.
1. Return CreateIteratorFromClosure(_closure_, ~Iterator Helper~, %IteratorHelperPrototype%).
</emu-alg>
</emu-clause>

<emu-clause id="sec-iteratorprototype.flatmap">
<h1>Iterator.prototype.flatMap ( _mapper_ )</h1>
<emu-alg>
Expand Down Expand Up @@ -802,24 +784,6 @@ <h1>AsyncIterator.prototype.drop ( _limit_ )</h1>
</emu-alg>
</emu-clause>

<emu-clause id="sec-asynciteratorprototype.indexed">
<h1>AsyncIterator.prototype.indexed ( )</h1>
<emu-alg>
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(&laquo; _index_, _value_ &raquo;).
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%).
</emu-alg>
</emu-clause>

<emu-clause id="sec-asynciteratorprototype.flatmap">
<h1>AsyncIterator.prototype.flatMap ( _mapper_ )</h1>
<p>AsyncIterator.prototype.flatMap is a built-in async generator function which, when called, performs the following steps:</p>
Expand Down

0 comments on commit 0aa02c4

Please sign in to comment.