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

19
LINES

< > BotCompany Repo | #1027755 // DeepZipTools

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

Libraryless. Click here for Pure Java version (2826L/18K).

1  
sclass DeepZipTools {
2  
  // define what a variable is
3  
  swappable bool isVar(O o) {
4  
    ret o instanceof S && isDollarVar(o/S)
5  
      || o instanceof SymVar; }
6  
  
7  
  MetaTransformer metaTransformer = metaTransformer_transformableAndList();
8  
  MetaTransformer metaTransformer() { ret metaTransformer; }
9  
  
10  
  // and the usual transformation utils
11  
  swappable Map deepZip(O a, O b) { ret newGazelle_deepZip1(a, b); }
12  
  swappable O replaceVars(O o, Map map) {
13  
    ret replaceVars_understandsTransformableAndList(o, map);
14  
    //if (empty(map)) ret o;
15  
    //ret metaTransformer().transform(x -> map.get(x), map);
16  
  }
17  
  
18  
  O transform(IF1 f, O o) { ret metaTransformer().transform(f, o); }
19  
}

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: #1027755
Snippet name: DeepZipTools
Eternal ID of this version: #1027755/6
Text MD5: b2875e12a20ffabd7e9afbc65209eafa
Transpilation MD5: 663f04a84e6b72756015a15206998dec
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-16 15:30:58
Source code size: 698 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 278 / 641
Version history: 5 change(s)
Referenced in: [show references]