September 2018
Intermediate to advanced
398 pages
9h 43m
English
We saw in the previous examples that Scala expressions have a type. For instance, the value 1 is of type Int, and the expression 1+1 is also of type Int. A type is a classification of data and provides a finite or infinite set of values. An expression of a given type can take any of its provided values.
Here are a few examples of types available in Scala:
Read now
Unlock full access