Join Slack
Powered by
if there is Some(f : (A)->B), how I can make f ...
# arrow
i
Ifvwm
07/09/2020, 3:03 AM
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
Patrick Louis
07/09/2020, 6:05 AM
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
5
Views
Open in Slack
Previous
Next