I'm following <this article on applicatives> and i...
# arrow
c
I'm following this article on applicatives and it looks like the api for
Either
has changed as
ap
is no longer resolved in this statement:
Copy code
location.ap(name.map(action))
where
location
and
name
are both of type
Either<String, String>
and
action
is
(String) -> (String) -> String
. How can I find out what the updated sytnax should be?
Just needed to search through the channel history to see that
ap
and
Applicative
have gone. In my example above I think the correct approach now would be to use:
Copy code
name.zip(location, action.uncurried())
p
yep!