val t : Tuple2[String , Array[Tuple2[[String , String] , Double]]] = ("a", Array((("a", "b"), 1.0), (("a", "c"), 2.0)))
그러나이 오류가 나타납니다 :
Multiple markers at this line - identifier expected but '[' found. - wrong number of type arguments for Tuple2,
should be 2 - only classes can have declared but undefined members
이 Tuple2가
val t : (String, Array[((String, String), Double)]) = ("a", Array((("a", "b"), 1.0), (("a", "c"), 2.0)))
내가하지 또한이 유형 정의를 사용할 수 있어야합니다 (또는 TupleN) 타입을 정의 할 때 허용되지 않는가? 특히이
'Tuple2' 파일 하나가 누락되었습니다. –