Scala Tuple Example: Function Return Multiple Values

You can return multiple values by using tuple. Function does not return multiple values but you can do this with the help of tuple. In the following example, we are describing this process.

Output:

Iterating values: 
1
2.5
India




Contact US

Email:[email protected]

Scala Tuple Example
10/30