Vaguely about this use of lambda
So, I think of Lambdas, as shown in "Learn You a Haskell":
(filter (\xs -> length xs > 15) (map chain [1..100]))
Input for xs is a list generated from (map chain [1..100]))
This is fairly easy to read.
So, here, where I got confused, I look at some real world code (tm).
Here is the function from conduit
fmap f (ResourceT m) = ResourceT $ \r -> fmap f (m r)
Where is the input for r introduced?
+5
2 answers