Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
val keys = List(1, 2, 3)
|
||||
val values = Array("A", "B", "C") // Array mixed with List
|
||||
val map = keys.zip(values).toMap // and other Seq are possible.
|
||||
|
||||
// Testing
|
||||
assert(map == Map(1 ->"A", 2 -> "B", 3 -> "C"))
|
||||
println("Successfully completed without errors.")
|
||||
Loading…
Add table
Add a link
Reference in a new issue