Transpiled version (2556L) is out of date.
1 | svoid wordTreeAdd(MapSO tree, Cl<S> words, O value) { |
2 | fOr (S word : words) { |
3 | O child = tree.get(word); |
4 | Map<S, O> subTree; |
5 | if (child instanceof Map) |
6 | tree = (Map) child; |
7 | else { |
8 | tree.put(word, subTree = ciMap()); |
9 | if (child != null) |
10 | subTree.put("<default>", child); |
11 | tree = subTree; |
12 | } |
13 | } |
14 | tree.put("<default>", value); |
15 | } |
Began life as a copy of #1014221
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1014222 |
Snippet name: | wordTreeAdd |
Eternal ID of this version: | #1014222/9 |
Text MD5: | f1f11b6ef5aecf387f934707e8ea9ba4 |
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:52:36 |
Source code size: | 385 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 395 / 484 |
Version history: | 8 change(s) |
Referenced in: | [show references] |