if there is Some(f : (A)->B), how I can make f ...
# arrow
i
if there is Some(f : (A)->B), how I can make f work on another Some object? since map, ap, and flatMap all takes a function
p
If you have
Some((A)->B)
and
Some(A)
Copy code
Some(A).ap(Some((A)->B))
will produce a
Some(B)
See https://arrow-kt.io/docs/0.10/arrow/typeclasses/applicative/#kindf-aap
👍🏾 1