Connor Ford
10/14/2021, 2:17 PMEither
has changed as ap
is no longer resolved in this statement:
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?Connor Ford
10/14/2021, 2:51 PMap
and Applicative
have gone. In my example above I think the correct approach now would be to use:
name.zip(location, action.uncurried())
pakoito
10/14/2021, 4:26 PM