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).

sclass DeepZipTools {
  // define what a variable is
  swappable bool isVar(O o) {
    ret o instanceof S && isDollarVar(o/S)
      || o instanceof SymVar; }
  
  MetaTransformer metaTransformer = metaTransformer_transformableAndList();
  MetaTransformer metaTransformer() { ret metaTransformer; }
  
  // and the usual transformation utils
  swappable Map deepZip(O a, O b) { ret newGazelle_deepZip1(a, b); }
  swappable O replaceVars(O o, Map map) {
    ret replaceVars_understandsTransformableAndList(o, map);
    //if (empty(map)) ret o;
    //ret metaTransformer().transform(x -> map.get(x), map);
  }
  
  O transform(IF1 f, O o) { ret metaTransformer().transform(f, o); }
}

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