Scala: tuple (Introduction / sample)

Features:

        1. The data set may be of different types

        2. Up to 22 elements can only put

Get the value:

  Obtained by the subscripts, where the subscript is the edge from the beginning of the name of the tuple subscripts ._ (difference data)

Dual-tuple (two elements)

val tp = ( "kegongchnag", 1)

 

Guess you like

Origin blog.csdn.net/drl_blogs/article/details/91563779