p
let map: HashMap<_,_> = ["a", "b", "c"].iter().map(|&a| (a, a)).collect();
collect::<HashMap<_,_>>()
Size: a a a
p
let map: HashMap<_,_> = ["a", "b", "c"].iter().map(|&a| (a, a)).collect();
collect::<HashMap<_,_>>()
p
RG
array
|> Enum.chunk_every(2)
|> Enum.map(fn [a, b] -> {a, b} end)
p
H
R
RG
r
fromList $ Prelude.map ((,) <$> id <*> id)
ΑZ
['a', 'b', 'c'] -> { a: 'a', b: 'b', c: 'c' }
var map = array.ToDictionary(x => x)
ΑZ
ΑZ
ΑZ
fromList $ Prelude.map ((,) <$> id <*> id)
p
r
Data.Map.fromList
ΑZ
ΑZ
p
ΑZ
p
ΑZ
let map: HashMap<_, _> = ..
?