« first day (38 days earlier)      last day (578 days later) » 

12:39 PM
@Potato44 Nice, you could post it to code review to get some feedback.
 
 
5 hours later…
5:50 PM
Is there a function like (a -> b -> c) -> (d -> a) -> (e -> b) -> d -> e -> c?
So f recip exp (*) = \x y -> recip x * exp y
@Leo I don't think that works; (<$>) for functions is just (.); (f <*> g) x is f x (g x), which might be what you meant
 
6:38 PM
Oct 11 at 22:09, by H.PWiz
@flawr That's liftA2 :: (a -> b -> c) -> f a -> f b -> f c where f is the function functor. This without the import goes f<$>g<*>h which is equivalent to \x -> f (g x) (h x)
@Challenger5 ^
 
@H.PWiz I've seen that; it almost works but applies both functions to the same argument. I want it to return a function that takes two arguments
 
Oh, I didn't read that properly...
How about ((flip.((.).)).).(.)? It's not looking good. D:
 
Oh god...
 
Yeah, I tried that too. Maybe if you reorder the arguments?
Nope, no results for any permutation of the first 3 arguments
 
6:50 PM
Also, didn't realise f<$>g<*>h could be just f.g<*>h. Thanks!
 

« first day (38 days earlier)      last day (578 days later) »