Libraryless. Click here for Pure Java version (2983L/17K).
1 | static <A> TreeMap<A> listToKeyAndValue_treeMap(Iterable<A> l) {
|
2 | new TreeMap<A> map; |
3 | for (A a : unnull(l)) |
4 | map.put(a, a); |
5 | ret map; |
6 | } |
Began life as a copy of #1018161
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
| Snippet ID: | #1031998 |
| Snippet name: | listToKeyAndValue_treeMap |
| Eternal ID of this version: | #1031998/1 |
| Text MD5: | f83f4d4363c28869c44cac51fa1dc85c |
| Transpilation MD5: | 247bad8bc0ecc33957397cfdf19a2b64 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-08-08 15:27:21 |
| Source code size: | 147 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 387 / 496 |
| Referenced in: | [show references] |