1 | // apply a function to an iterator |
2 | static IterableIterator mapLike mapIterator(O f, Iterator i) { |
3 | ret mapI(f, i); |
4 | } |
5 | |
6 | |
7 | |
8 | static IterableIterator mapIterator(Iterator i, O f) { |
9 | ret mapI(i, f); |
10 | } |
11 | |
12 | |
13 | static IterableIterator mapIterator(Iterable i, O f) { |
14 | ret mapI(iterator(i), f); |
15 | } |
16 | |
17 | static IterableIterator mapIterator(O f, Iterable i) { |
18 | ret mapI(iterator(i), f); |
19 | } |
20 | |
21 | |
22 | ifclass IterableIterator |
23 | static IterableIterator mapIterator(IterableIterator i, O f) { |
24 | ret mapIterator((Iterator) i, f); |
25 | } |
26 | |
27 | static IterableIterator mapIterator(O f, IterableIterator i) { |
28 | ret mapIterator((Iterator) i, f); |
29 | } |
30 | endif |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017277 |
Snippet name: | mapIterator - synonym of mapI |
Eternal ID of this version: | #1017277/6 |
Text MD5: | e15ca1f43368125b9b4cd21f6816da66 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-22 14:39:08 |
Source code size: | 633 bytes / 30 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 378 / 455 |
Version history: | 5 change(s) |
Referenced in: | [show references] |