as for the other question, the rules are: if the l...
# intellij
k
as for the other question, the rules are: if the last or single argument is a lambda you can put it outside the parans so
filter({})
,
filter() {}
and
filter {}
are the same thing. the last version is the preferred one. this also works if you have multiple lambda arguments, but only for the last one. so you can only do
foo({}) {}
but not
foo {} {}