Join Slack
Communities
Powered by
<@U16GR10N7>: Since it's a one line if block, you ...
# getting-started
s
salomonbrys
07/07/2016, 6:28 AM
@ean5533
: Since it's a one line if block, you can use parenthesis to "isolate" the lambda expression (instead of the ackward double curly brackets):
Copy code
val aLambda = if(someCondition) ({foo.bar()}) else ({foo.baz()})
Open in Slack
Previous
Next