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

11
LINES

< > BotCompany Repo | #1005005 // initialUnaryConcepts

JavaX fragment (include)

static void initialUnaryConcepts(Map<Class, S> initialLines) {
  for (Class c : keys(initialLines)) {
    Interpretation intp = cast uniq(c);
    Line line = findBackRef(intp, Line.class);
    if (line == null) {
      S text = initialLines.get(c);
      print("Making initial line " + quote(text));
      new Line(text).interpretation.set(intp);
    }
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005005
Snippet name: initialUnaryConcepts
Eternal ID of this version: #1005005/2
Text MD5: 51f0d5b939c0709e7533e055fb2c0dff
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-15 14:14:57
Source code size: 368 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 512 / 492
Version history: 1 change(s)
Referenced in: [show references]