Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1028747 // nla_partialMappings - mappings where rewritten props are found (not checking entity compatibility)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4000L/24K).

1  
static L<Map<NLABlock.Entity>> nla_partialMappings(NLABlock b1, NLABlock b2) {
2  
  Set<L> propsB = b2.propositionSet();
3  
4  
  L<Map<NLABlock.Entity>> out = new L;
5  
  loop: for (Map<NLABlock.Entity> map : nla_allPossibleMappings(b1, b2)) {
6  
    for (NLABlock.Line line : b1.propositionLines()) {
7  
      L bProp = nla_translateLine(line, map);
8  
      if (!propsB.contains(bProp))
9  
        continue loop;
10  
    }
11  
    out.add(map);
12  
  }
13  
  ret out;
14  
}

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: 222 / 311
Version history: 5 change(s)
Referenced in: [show references]