1 | static Set<Lisp> followForwardRelation(S relation, S argument) {
|
2 | ret followForwardRelation(relation, lisp(argument)); |
3 | } |
4 | |
5 | static Set<Lisp> followForwardRelation(S relation, Lisp argument) {
|
6 | new HashSet<Lisp> out; |
7 | for (Lisp l : lispTruthByHead(relation)) |
8 | if (eq(l.get(0), argument)) |
9 | out.add(l.get(1)); |
10 | ret out; |
11 | } |
Began life as a copy of #1007843
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: | #1007941 |
| Snippet name: | followForwardRelation |
| Eternal ID of this version: | #1007941/4 |
| Text MD5: | 95d9a84e7585ffb8581c70329c0e010e |
| 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-17 19:43:37 |
| Source code size: | 338 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 731 / 791 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |