Home » Scala Tuple Example: Returning Multiple Values

Scala Tuple Example: Returning Multiple Values

by Online Tutorials Library

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  

You may also like