Javatpoint Logo
Javatpoint Logo

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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA