https://kotlinlang.org logo
#functional
Title
# functional
w

wakingrufus

03/30/2020, 3:05 PM
in a non-arrow context, the
also
scope function works well to encapsulate side effects
r

raulraja

03/30/2020, 4:46 PM
also
is eager in evaluation so it can’t suspend or control side effects for safe resource handling unless it’s inside a
suspend
function. It is a convenient way to run uncontrolled effects ignoring their result though.
1