This works for me:
fn addsub(x: isize, y: isize) -> (isize, isize) {
(x + y, x - y)
}
It’s basically the same as in Go, but the parentheses are required.
This works for me:
fn addsub(x: isize, y: isize) -> (isize, isize) {
(x + y, x - y)
}
It’s basically the same as in Go, but the parentheses are required.