Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1008577 // tokReplace_lower - replace tokens using map on lowercase words (modifies original)

JavaX fragment (include)

static L<S> tokReplace_lower(SS map, L<S> tok) {
  if (nempty(map))
    for (int i = 1; i < l(tok); i += 2) {
      S x = map.get(lower(tok.get(i)));
      if (x != null) tok.set(i, x);
    }
  ret tok;
}

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: 378 / 420
Referenced in: [show references]