Uses 11335K of libraries. Click here for Pure Java version (7911L/51K).
1 | static LLS stringsToLineCompSplits_wordMode(LS strings) { |
2 | new LineCompCompressor comp; |
3 | comp.caseInsensitive = true; |
4 | ret (L) lambdaMap(l -> lambdaMap nlToSpace(l), values(lcEncodingsAsStringLists( |
5 | lcLineMode(comp, listToStringCountKeys(lambdaMap(s -> lines_rtrim(javaTokC(s)), strings)))))); |
6 | } |
7 | |
8 | static LLS stringsToLineCompSplits_wordMode(S... strings) { |
9 | ret stringsToLineCompSplits_wordMode(asList(strings)); |
10 | } |
Began life as a copy of #1028783
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: | #1028912 |
Snippet name: | stringsToLineCompSplits_wordMode - essentially finds shared phrases |
Eternal ID of this version: | #1028912/6 |
Text MD5: | 385ff0c0bf45bfca2bb296309ca6f07a |
Transpilation MD5: | 5faafc1a720091a273dec79b94d622e4 |
Author: | stefan |
Category: | javax / linecomp |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-11 21:40:00 |
Source code size: | 431 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 227 / 334 |
Version history: | 5 change(s) |
Referenced in: | [show references] |