1 | static L<S> tokReplace_lower(SS map, L<S> tok) { |
2 | if (nempty(map)) |
3 | for (int i = 1; i < l(tok); i += 2) { |
4 | S x = map.get(lower(tok.get(i))); |
5 | if (x != null) tok.set(i, x); |
6 | } |
7 | ret tok; |
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: | #1008577 |
Snippet name: | tokReplace_lower - replace tokens using map on lowercase words (modifies original) |
Eternal ID of this version: | #1008577/1 |
Text MD5: | 224ee82b631227f81295eb9172d62bc1 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-24 00:29:59 |
Source code size: | 211 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 488 / 513 |
Referenced in: | [show references] |