3 ms·
To add onto this, its not one line functions but rather functions whose body is a single expression. You can do a big for comprehension, or a if/else, or a big
by s4vi0r 8y ago
To add onto this, its not one line functions but rather functions whose body is a single expression.
You can do a big for comprehension, or a if/else, or a big chain of function calls, etc. without having to add brackets.
In practice you often end up not really using braces that often when writing FP style Scala.