Join Slack
The `fold` works, but it always seems to be a bit wrong. The `fold` method returns a value; it doesn...
# arrow
s
streetsofboston
05/27/2020, 3:39 PM
The
fold
works, but it always seems to be a bit wrong. The
fold
method returns a value; it doesn’t seem fit to execute a side-effect like a
forEach
would do….
p
pakoito
05/27/2020, 4:06 PM
Unit is a value :D
pakoito
05/27/2020, 4:10 PM
ideally you'd like to make the side-effect into an effect by wrapping on IO or suspend
👍 1
s
streetsofboston
05/27/2020, 4:10 PM
True, but still 🙂
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by