Uses 11335K of libraries. Click here for Pure Java version (8166L/53K).
1 | static BasicLogicRule<S> ai_sharedPhrasesIntoDollarVars(BasicLogicRule<S> r) { |
2 | LLS splits = stringsToLineCompSplits_wordMode(r.lhs, r.rhs); |
3 | ifdef ai_sharedPhrasesIntoDollarVars_debug |
4 | print(+splits); |
5 | endifdef |
6 | LS phrases = antiFilter isDollarVar(intersectCISets(splits)); |
7 | SS map = ciMapWithUnusedCountingDollarVars(phrases, linesLL(r.lhs, r.rhs)); |
8 | LLS splits2 = map(splits, l -> replaceElementsUsingMap(l, map)); |
9 | ret listToBasicLogicRule(lambdaMap nlJoin(splits2)); |
10 | } |
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: | 199 / 285 |
Version history: | 5 change(s) |
Referenced in: | [show references] |