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

12
LINES

< > BotCompany Repo | #1008178 // addAlwaysRuleHandler

JavaX fragment (include)

please include function applyAlwaysRules_step.

// handler: voidfunc(Lisp)
// note: only one handler per head can exist
static void addAlwaysRuleHandler(S head, O handler) {
  applyAlwaysRules_handlers.put(head, handler);
}

static void addAlwaysRuleHandler(L<S> heads, O handler) {
  for (S head : heads)
    addAlwaysRuleHandler(head, handler);
}

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: #1008178
Snippet name: addAlwaysRuleHandler
Eternal ID of this version: #1008178/2
Text MD5: 453983209c7c5aebcf0b4925a651c218
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-07 00:14:28
Source code size: 359 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 512 / 534
Version history: 1 change(s)
Referenced in: [show references]