You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At minimum, something similar could be added to Tuple. Bifunctor is also quite helpful (tuples, results/either, etc). And Bitraversable is new to me, but has some interesting applications.
The text was updated successfully, but these errors were encountered:
Only Tuple5.apply for whatever reason is still inside the individual arity files, but Tuple.apply2...Tuple.apply5 already exist in Tuple.re, as aliases to Function.uncurry2...Function.uncurry5
Had a problem where I had a tuple of functions
(a->b, a->c)
, so needed to applya
to both functions and return(b,c)
.Signature:
(a -> b, a -> c) -> a -> (b, c)
Example:
(id, increment) -> 1 -> (1,2)
Looked very general, and wonderful Haskell friends agreed:
&&&
&&&
on ArrowAt minimum, something similar could be added to Tuple. Bifunctor is also quite helpful (tuples, results/either, etc). And Bitraversable is new to me, but has some interesting applications.
The text was updated successfully, but these errors were encountered: