Skip to content

Conversation

janekdb
Copy link

@janekdb janekdb commented Apr 2, 2020

This makes the doMath example consistent with the earlier examples where 1 is added and then the result is multiplied by 2,

val func1 = (a: Int) => a + 1
val func2 = (a: Int) => a * 2
val func3 = (a: Int) => s"${a}!"
val func4 = func1.map(func2).map(func3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant