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

17
LINES

< > BotCompany Repo | #1008098 // lispAddLocalTruth

JavaX fragment (include)

// return new statement or null if it existed
static LispStatement lispAddLocalTruth(Lisp l) {
  if (lispTrue(l)) null;
  ret lispAddLocalTruth_noCheck(aGlobalID(), l);
}

static LispStatement lispAddLocalTruth(S id, Lisp l) {
  if (lispTrue(l)) null;
  ret lispAddLocalTruth_noCheck(id, l);
}

static LispStatement lispAddLocalTruth_noCheck(S id, Lisp l) {
  LispStatement s = new LispStatement(id, l);
  lispStatements_cached().put(id, s);
  lispChange();
  ret s;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008098
Snippet name: lispAddLocalTruth
Eternal ID of this version: #1008098/3
Text MD5: 1e6fd17a017092b3ed5cc531c9f251d4
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-24 23:27:25
Source code size: 484 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 514 / 553
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1008111 - removeLispStatement