Uses 11335K of libraries. Click here for Pure Java version (8166L/53K).
static BasicLogicRule<S> ai_sharedPhrasesIntoDollarVars(BasicLogicRule<S> r) { LLS splits = stringsToLineCompSplits_wordMode(r.lhs, r.rhs); ifdef ai_sharedPhrasesIntoDollarVars_debug print(+splits); endifdef LS phrases = antiFilter isDollarVar(intersectCISets(splits)); SS map = ciMapWithUnusedCountingDollarVars(phrases, linesLL(r.lhs, r.rhs)); LLS splits2 = map(splits, l -> replaceElementsUsingMap(l, map)); ret listToBasicLogicRule(lambdaMap nlJoin(splits2)); }
Began life as a copy of #1028853
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: | #1028916 |
Snippet name: | ai_sharedPhrasesIntoDollarVars |
Eternal ID of this version: | #1028916/6 |
Text MD5: | ae49ec309385afe02bd3e991ea0aa119 |
Transpilation MD5: | b6d0985dec5b272a3e819f85508a8250 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-12 12:15:49 |
Source code size: | 492 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 200 / 285 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1028926 - ai_sharedWordParts |