1 | static <A> ItIt<A> reversedIterator(final L<A> l) { |
2 | ret new ItIt<A>() { |
3 | int i = l(l)-1; |
4 | |
5 | public bool hasNext() { ret i >= 0; } |
6 | public A next() { ret l.get(i--); } |
7 | }; |
8 | } |
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: | 363 / 405 |
Version history: | 3 change(s) |
Referenced in: | [show references] |