Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-05-10 23:36:32 +03:00
parent 75c039e57f
commit 5d0df4dedc

View File

@ -1785,11 +1785,25 @@ XXX only list the differences...
#### `<Generator>.at(..)`
```bnf
<Generator>.at(<index>)
-> <Generator>
```
<!-- XXX -->
#### `<Generator>.shift()` / `<Generator>.pop()`
```bnf
<Generator>.shift()
<Generator>.pop()
-> <func>
```
Note that `.shift()` will get the element the generator is at currently which may
not be the first element in the sequence.
<!-- XXX -->