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

7
LINES

< > BotCompany Repo | #1017524 // mapToWordTree

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2720L/17K).

static <A> MapSO mapToWordTree(Map<S, A> map) {
  MapSO tree = ciMap();
  for (S key, A value : unnull(map)) {
    wordTreeAdd(tree, javaTokC(key), value);
  }
  ret simplifyWordTree(tree);
}

Author comment

Began life as a copy of #1014221

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1017524
Snippet name: mapToWordTree
Eternal ID of this version: #1017524/3
Text MD5: 37d2350ab85272977a4598694f25d58d
Transpilation MD5: 20106eaa6eba3427ca2de223f2fddf66
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-06 20:55:41
Source code size: 197 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 498 / 551
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)