<https://www.raywenderlich.com/9527-functional-pro...
# arrow
d
I tell my team logging is a black hole, so a pure function that logs is "pure enough for me"
p
Instead of
(String) -> Unit
do
suspend (String) -> Unit
or
(String) -> IO<Unit>
and we’re all happy 😄
y
This really looks interesting.
c
I just checked it out and it's great! The only thing was, not being familiar with kt, I did not understood the
to
syntax on Logger: The FP way > Applying Abstraction for building Pairs: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/to.html