Libraryless. Click here for Pure Java version (3039L/19K).
1 | static <A, B> StringTrie<B> lambdaMapLike mapStringTrieValues(IF1<A, B> f, StringTrie<A> trie) { |
2 | if (trie == null) null; |
3 | new StringTrie<B> trie2; |
4 | if (trie.value != null) |
5 | trie2.value = f.get(trie.value); |
6 | trie2.children = (TreeMap) mapValues(trie.children, child |
7 | -> mapStringTrieValues(f, child)); |
8 | ret trie2; |
9 | } |
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: | 232 / 304 |
Version history: | 3 change(s) |
Referenced in: | [show references] |