In Scala language, of what maximum size that a developer can define for
- Tuple
- Array
- List
Thanks
In Scala language, of what maximum size that a developer can define for
Thanks
Tuple: 22 (see Why are scala functions limited to 22 parameters?)
List: Practically speaking, since various list length methods return Int
, it's effectively Int.MaxValue
Array: Same as List, but as Andrey points out in the comments, you cannot ask for more than Int
entries