static int smartIndexOfStartsWith(L<S> l, S s) { ret smartIndexOfStartsWith(l, s, 0); } static int smartIndexOfStartsWith(L<S> l, S s, int i) { int idx = indexOfStartsWith(l, s); ret idx < 0 ? l(l) : idx; }
Began life as a copy of #1003993
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1007925 | 
| Snippet name: | smartIndexOfStartsWith | 
| Eternal ID of this version: | #1007925/3 | 
| Text MD5: | 7275b84b00462e107fdfe4f4773afa28 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-04-17 16:42:57 | 
| Source code size: | 220 bytes / 8 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 736 / 753 | 
| Version history: | 2 change(s) | 
| Referenced in: | [show references] |