static MultiSet<S> ai_allPrefixesWithWordCount(S s) { TreeSet<S> words = asCISet(words2_noNumbers(s); MultiSet<S> out = ciMultiSet(); for (S prefix : ai_allWordPrefixes(s)) out.add(prefix, l(prefixSubSet(words, prefix))); ret out; }
Began life as a copy of #1021690
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021692 |
Snippet name: | ai_allPrefixesWithWordCount |
Eternal ID of this version: | #1021692/4 |
Text MD5: | eb90dbda25f17abf67af4244d221e256 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-24 15:34:02 |
Source code size: | 250 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 281 / 334 |
Version history: | 3 change(s) |
Referenced in: | [show references] |