Suppose in Go we have a function returning two arguments
func squareAndCube(int side) (square int, cube int) {
square = side * side
cube = square * side
return
}
Then you would like to use the first (second) value of this function in the conditional:
square, _ := squareAndCube(n)
if square > m {
...
}
However, can we do first two lines in one line if we do not need the value square to use anywhere else? E.g.
if squareAndCube(n).First() > m {
...
}