Libraryless. Click here for Pure Java version (2653L/17K).
static PrefixSuffixAndEntries autoDeprefixAndSuffix(Cl<S> l) { new PrefixSuffixAndEntries out; out.prefix = commonPrefixMulti(l); LS l2 = lambdaMap_curry dropPrefix(out.prefix, l); out.suffix = commonSuffixMulti(l2); if (empty(out.prefix) && empty(out.suffix)) null; out.entries = lambdaMap_curry dropSuffix(out.suffix, l2); ret out; }
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: | #1028014 |
| Snippet name: | autoDeprefixAndSuffix |
| Eternal ID of this version: | #1028014/1 |
| Text MD5: | 2fa709cb73ad056364c096e681a883e9 |
| Transpilation MD5: | 4878d7527b735f2f2c22d83ad4e64bab |
| Author: | stefan |
| Category: | javax / html |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-05-03 18:25:51 |
| Source code size: | 357 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 462 / 608 |
| Referenced in: | [show references] |