static L<PTElement> ai_scanParseTreeForWord_all_tighter(PTElement e, S word) { new L<PTElement> out; ai_scanParseTreeForWord_all_tighter_scan(e, word, out); ret out; } svoid ai_scanParseTreeForWord_all_tighter_scan(PTElement e, S word, L<PTElement> out) { if (e == null) ret; if (!(e instanceof HaveCategory && nempty(e.children)) && eqic(e.text(), word)) ret with out.add(e); for (PTElement child : unnull(e.children)) ai_scanParseTreeForWord_all_tighter_scan(child, word, out); }
Began life as a copy of #1017492
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1017495 |
| Snippet name: | ai_scanParseTreeForWord_all_tighter - returns more precise categories |
| Eternal ID of this version: | #1017495/5 |
| Text MD5: | 1eda51c067bd000bb2f32d1347af2b8f |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-07-23 23:04:30 |
| Source code size: | 509 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 575 / 620 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |