effekt icon indicating copy to clipboard operation
effekt copied to clipboard

Multiple return values

Open phischu opened this issue 2 years ago • 0 comments

It would be great if we could return multiple values from a function directly

def swap(x: Int, y: Int): (Int, Int) = (y, x)

This should not be sugar for pairs (as it currently is) but multiple return values without constructing a pair.

phischu avatar Mar 16 '23 14:03 phischu