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

12
LINES

< > BotCompany Repo | #1008178 // addAlwaysRuleHandler

JavaX fragment (include)

1  
please include function applyAlwaysRules_step.
2  
3  
// handler: voidfunc(Lisp)
4  
// note: only one handler per head can exist
5  
static void addAlwaysRuleHandler(S head, O handler) {
6  
  applyAlwaysRules_handlers.put(head, handler);
7  
}
8  
9  
static void addAlwaysRuleHandler(L<S> heads, O handler) {
10  
  for (S head : heads)
11  
    addAlwaysRuleHandler(head, handler);
12  
}

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: 513 / 535
Version history: 1 change(s)
Referenced in: [show references]