回答編集履歴
1
もっと簡潔に
test
CHANGED
@@ -6,9 +6,9 @@
|
|
6
6
|
|
7
7
|
[["a",10],["b",20],["c",30],["a",40],["a",50]]
|
8
8
|
|
9
|
-
|> group-by (
|
9
|
+
|> group-by (.0)
|
10
10
|
|
11
|
-
|> Obj.map
|
11
|
+
|> Obj.map -> it |> map (.1) |> fold1 (+)
|
12
12
|
|
13
13
|
|> obj-to-pairs
|
14
14
|
|