Libraryless. Click here for Pure Java version (2659L/17K).
1 | static <A> ItIt<L<A>> listPrefixes_notEmpty(L<A> l) { |
2 | ret iff(new F0 { |
3 | int i, n = l(l); |
4 | |
5 | public O get() { |
6 | if (i >= n) ret endMarker(); |
7 | ret cloneSubList(l, 0, ++i); |
8 | } |
9 | }); |
10 | } |
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: | #1017043 |
Snippet name: | listPrefixes_notEmpty - returns all prefixes from length 1 to full as cloned lists |
Eternal ID of this version: | #1017043/4 |
Text MD5: | a670d5b5c692cef20734eee4b545f8ee |
Transpilation MD5: | 5d938fb805d390aa75687020e41a1996 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-11-05 12:32:13 |
Source code size: | 212 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 334 / 431 |
Version history: | 3 change(s) |
Referenced in: | [show references] |