Libraryless. Click here for Pure Java version (2502L/16K).
1 | static <A> Map<A, Bool> trueFalseMap(Iterable<A> pos, Iterable<A> neg) { |
2 | new LinkedHashMap<A, Bool> map; |
3 | fOr (A a : pos) |
4 | map.put(a, true); |
5 | fOr (A a : neg) |
6 | map.put(a, false); |
7 | ret map; |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028709 |
Snippet name: | trueFalseMap |
Eternal ID of this version: | #1028709/1 |
Text MD5: | 69bbe8669c2090cd6be32960c88975db |
Transpilation MD5: | b57394e8c3630e00fa630fd16e551c94 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-05 23:52:57 |
Source code size: | 207 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 179 / 244 |
Referenced in: | [show references] |