Join Slack
Powered by
Is there a way to create a function literal captur...
# announcements
d
desseim
10/06/2015, 10:39 AM
Is there a way to create a function literal capturing a value ? e.g. with
anArray.sortedBy { obj.getValue().compare(it) }
to have
obj.getValue()
called only once
when the call to
sortedBy
is executed
?
Open in Slack
Previous
Next