|
|
|
|
|
by smichel17
2261 days ago
|
|
Stray thought while reading the documentation, inspired by how easy it is to convert a variable to a function: is there any reason to include a separate switch statement at all? It seems like you could use `if` there with a similar syntax: getSignZero(n) = if {
n > 0 then Positive
n < 0 then Negative
else Zero
}
|
|