Libraryless. Click here for Pure Java version (3039L/19K).
static <A, B> StringTrie<B> lambdaMapLike mapStringTrieValues(IF1<A, B> f, StringTrie<A> trie) { if (trie == null) null; new StringTrie<B> trie2; if (trie.value != null) trie2.value = f.get(trie.value); trie2.children = (TreeMap) mapValues(trie.children, child -> mapStringTrieValues(f, child)); ret trie2; }
Began life as a copy of #1030178
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030179 |
Snippet name: | mapStringTrieValues |
Eternal ID of this version: | #1030179/4 |
Text MD5: | 697e443f70597dbf0bbcc962cd44f798 |
Transpilation MD5: | 3c86560d62677ffc08e3ea1fe3baf26b |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-11-12 11:19:33 |
Source code size: | 334 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 202 / 263 |
Version history: | 3 change(s) |
Referenced in: | [show references] |