質問編集履歴
1
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
// マップにあるキーと値を逆転させるflipValues関数をつくれ。
|
7
7
|
val gradesByStudent = mapOf("Josh" to 4.0, "Alex" to 2.0, "Jane" to 3.0)
|
8
8
|
//表示例:{Josh=4.0, Alex=2.0, Jane=3.0}
|
9
|
-
|
9
|
+
flipValues(gradesByStudent)
|
10
10
|
//表示例:{4.0=Josh, 2.0=Alex, 3.0=Jane}
|
11
11
|
```
|
12
12
|
|