1 | static O ai_makeTester(Web web, S thing, S property) { |
2 | WebNode node = web_findNodeWithForwardRelations(web, "A standard function that tests", "what", thing, "for property", property); |
3 | if (node == null) fail("No tester for " + thing + " / " + property); |
4 | fS sfName = assertNotNull(web_operandText(node, "is")); |
5 | print("Using function: " + sfName + " for " + thing + " / " + property); |
6 | final Class c = loadFunctions_cached(sfName); |
7 | ret func(O o) { call(c, sfName, o) }; |
8 | } |
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: | #1010216 |
Snippet name: | ai_makeTester - make tester predicate for a property from web |
Eternal ID of this version: | #1010216/4 |
Text MD5: | 9d695c0ab67e5014dd0c797d09f87b84 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-06 21:17:36 |
Source code size: | 486 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 455 / 475 |
Version history: | 3 change(s) |
Referenced in: | [show references] |