Libraryless. Click here for Pure Java version (4000L/24K).
static L<Map<NLABlock.Entity>> nla_partialMappings(NLABlock b1, NLABlock b2) { Set<L> propsB = b2.propositionSet(); L<Map<NLABlock.Entity>> out = new L; loop: for (Map<NLABlock.Entity> map : nla_allPossibleMappings(b1, b2)) { for (NLABlock.Line line : b1.propositionLines()) { L bProp = nla_translateLine(line, map); if (!propsB.contains(bProp)) continue loop; } out.add(map); } ret out; }
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: | #1028747 |
Snippet name: | nla_partialMappings - mappings where rewritten props are found (not checking entity compatibility) |
Eternal ID of this version: | #1028747/6 |
Text MD5: | 4671de7e0e3428af7cd95f190a136832 |
Transpilation MD5: | ed207275336f02823ec90057aa69cdd5 |
Author: | stefan |
Category: | javax / nla |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-07 00:21:39 |
Source code size: | 445 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 223 / 311 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1028751 - nla_allPossibleMappings #1028753 - nla_partialMappingsWithFailures |