static L<PairS> allStringSplits(S s) { L<PairS> out = emptyList(l(s)-1); for (int i = 1; i < l(s); i++) addPair(out, substring(s, 0, i), substring(s, i)); ret out; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017804 |
Snippet name: | allStringSplits - into a pair |
Eternal ID of this version: | #1017804/3 |
Text MD5: | 7ef077acb8c78960ad2ee055c6a4fa9d |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-28 15:11:01 |
Source code size: | 180 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 338 / 394 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1018105 - allTokSplits_nOnRight - puts splitting N token in the second list #1025972 - splitStringInTwo_iterator |