Question: Is there an operator for zip
?
#160
-
There is a However, I would like to know whether exists an operator for it |
Beta Was this translation helpful? Give feedback.
Answered by
stephencelis
Mar 21, 2019
Replies: 1 comment
-
Hi @amadeu01! The functionality of zip(with: User.init)(optionalId, optionalName, optionalEmail)
// vs.
pure(curry(User.init)) <*> optionalId <*> optionalName <*> optionalEmail A shortcut to using curry(User.init) <¢> optionalId <*> optionalName <*> optionalEmail |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
amadeu01
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @amadeu01! The functionality of
zip
is typically achieved usingcurry
alongsidepure
, and<*>
(apply).A shortcut to using
pure
is to sometimes use themap
infix operator (<$>
in Haskell,<¢>
in this library):