I'm using a tuple within a map to help me assign values in an array, but I'm getting "too many arguments for method update"
val a = Map((1,1) -> "alex", (2,2) -> "Jade")
val boardRep = Array.ofDim[String](3, 3)
a foreach {
case (key, value) => {
boardRep((key._1), (key._2)) = value
}
}
This should come out to an array with "alex" in the (1,1) spot and "Jade" in the (2,2) spot. What am I doing incorrectly?