Scala - Inline conditional
Execute one or other code block depending on condition in a single line. This ternary conditional code is shorter than explicit if statements.
Execute one or other code block depending on condition in a single line. This ternary conditional code is shorter than explicit if statements.
if ({{condition}}) {{true_code}} else {{false_code}}
last update: