Return multiple values from a function
def f() {
return [2, 3]
}
(a, b) = f()
println a
println b
timestamp: 2018-10-30T11:40:01 tags:
- return
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
def f() {
return [2, 3]
}
(a, b) = f()
println a
println b
timestamp: 2018-10-30T11:40:01 tags: