1 | static ItIt<S> allSubstringsWithoutEmpty(S s) { |
2 | ret nestedIterator(countIterator_inclusive(1, l(s)), length -> |
3 | mapI(countIterator_inclusive(0, length == 0 ? 1 : l(s)-length), start -> |
4 | substring(s, start, start+length))); |
5 | } |
Began life as a copy of #1026836
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028136 |
Snippet name: | allSubstringsWithoutEmpty (iterator) |
Eternal ID of this version: | #1028136/1 |
Text MD5: | ca2c75878f55b863abe7e59c9a0b04d2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-05-23 13:03:45 |
Source code size: | 238 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 191 / 232 |
Referenced in: | [show references] |