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

7
LINES

< > BotCompany Repo | #1015547 // mapFromTokens

JavaX fragment (include)

static HashMap<S> mapFromTokens(S s) {
  L<S> tok = javaTok(s);
  new HashMap map;
  for (int i = 1; i+2 < l(tok); i += 4)
    map.put(tok.get(i), tok.get(i+2));
  ret map;
}

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: #1015547
Snippet name: mapFromTokens
Eternal ID of this version: #1015547/1
Text MD5: 01d5537bfc2de1e5ba139c8f10c88e8c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-17 12:44:22
Source code size: 180 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 428 / 462
Referenced in: [show references]