1 | static void web_contractRelation(Web web, S rel, S dest) { |
2 | for (Pair<WebNode> p : web_relationsOfType(web, rel)) { |
3 | new Matches m; |
4 | if (startsWith(web_text(p.b), dest + " ", m)) { |
5 | web_setRelationText(p, rel + " " + dest); |
6 | web_setText(p.b, trim(m.get(0))); |
7 | } |
8 | } |
9 | } |
Began life as a copy of #1010106
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: | #1010452 |
Snippet name: | web_contractRelation - e.g. "has/type X" -> "has type/X" |
Eternal ID of this version: | #1010452/1 |
Text MD5: | 8611dfc3cf62a4a74790b797b07770e0 |
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-18 01:27:38 |
Source code size: | 295 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 388 / 432 |
Referenced in: | [show references] |