Pair and Tuples. A pair in scala is written (x,y) , where x and y are the elements of the pair. val pair = ("answer", 42) val pair2 = ("answer" -> 43).
確定! 回上一頁