Libraryless. Click here for Pure Java version (2659L/17K).
static <A> ItIt<L<A>> listPrefixes_notEmpty(L<A> l) { ret iff(new F0 { int i, n = l(l); public O get() { if (i >= n) ret endMarker(); ret cloneSubList(l, 0, ++i); } }); }
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: | 542 / 687 | 
| Version history: | 3 change(s) | 
| Referenced in: | [show references] |