static <A> ItIt<A> reversedIterator(final L<A> l) { ret new ItIt<A>() { int i = l(l)-1; public bool hasNext() { ret i >= 0; } public A next() { ret l.get(i--); } }; }
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019382 |
Snippet name: | reversedIterator |
Eternal ID of this version: | #1019382/4 |
Text MD5: | 399b3063ea519e88d513436fcc663896 |
Author: | stefan |
Category: | javax / io |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-04 18:20:13 |
Source code size: | 190 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 362 / 403 |
Version history: | 3 change(s) |
Referenced in: | [show references] |