Libraryless. Click here for Pure Java version (2653L/17K).
| 1 | static PrefixSuffixAndEntries autoDeprefixAndSuffix(Cl<S> l) {
 | 
| 2 | new PrefixSuffixAndEntries out; | 
| 3 | out.prefix = commonPrefixMulti(l); | 
| 4 | LS l2 = lambdaMap_curry dropPrefix(out.prefix, l); | 
| 5 | out.suffix = commonSuffixMulti(l2); | 
| 6 | if (empty(out.prefix) && empty(out.suffix)) null; | 
| 7 | out.entries = lambdaMap_curry dropSuffix(out.suffix, l2); | 
| 8 | ret out; | 
| 9 | } | 
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: | 464 / 610 | 
| Referenced in: | [show references] |