1 | static void web_dropSecondWord(Web web, S word) { |
2 | for (WebNode node : web_nonRelationNodes(web)) { |
3 | S text = node.text(); |
4 | L<S> words = words2(text); |
5 | if (eqic(get(words, 1), word)) { |
6 | words.remove(1); |
7 | web_setText(node, joinWithSpaces(words)); |
8 | } |
9 | } |
10 | } |
Began life as a copy of #1010103
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: | #1010124 |
Snippet name: | web_dropSecondWord - drop second word of node text if it matches |
Eternal ID of this version: | #1010124/1 |
Text MD5: | a5f0d374296ad73d481fe4c9c14d735c |
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-03 23:15:07 |
Source code size: | 286 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 468 / 487 |
Referenced in: | [show references] |