1 | static L<S> substrings(S s, L<IntRange> ranges) { |
2 | new L<S> out; |
3 | for (IntRange range : ranges) |
4 | out.add(substring(s, range)); |
5 | ret out; |
6 | } |
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: | #1008770 |
Snippet name: | substrings - map(f substring) on L<IntRange> |
Eternal ID of this version: | #1008770/1 |
Text MD5: | 2d06c5418daad6c1b1456927078806f4 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-06-02 12:09:07 |
Source code size: | 149 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 462 / 499 |
Referenced in: | [show references] |