jtonic
04/24/2018, 4:05 AMOptionT.monad<EitherKindPartial<String>>().binding {
val a: Int = OptionT(anakinAge).bind()
val p: Int = OptionT(padmeAge).bind()
(a - p).absoluteValue
}.value().ev()
The example is from the book ‘’' Functional Kotlin ‘’'.
First OptionalT was not found in dependencies so I added the arrow-data.
Is there another arrow dependency I need to configure in gradle?
Thank you for your support.