1 | static S nlLogic_addGlobalID(S rule) { |
2 | rule = ltrim(rule); |
3 | if (!startsWith(rule, "[id:")) |
4 | rule = "[id: " + aGlobalID() + |
5 | (rule.startsWith("[") ? ", " + dropPrefix("[", rule) : "] " + rule); |
6 | ret rule; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017824 |
Snippet name: | nlLogic_addGlobalID |
Eternal ID of this version: | #1017824/4 |
Text MD5: | 691b3894e3551e4b38f39c9f4c060c49 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-09 21:51:31 |
Source code size: | 226 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 383 / 421 |
Version history: | 3 change(s) |
Referenced in: | [show references] |