[Haskell-beginners] Applying a function to two lists

Francesco Ariis fa-ml at ariis.it
Sat Apr 23 13:42:06 UTC 2016


On Sat, Apr 23, 2016 at 08:50:32AM +0000, Matt Williams wrote:
> Thanks a lot for this.
> 
> Just to clarify (and ignoring the flip, which I can solve by rewriting the
> checkNum function) - is this an example of currying?

Example of partial application! Currying is when you have a function like:

    f :: (a, b) -> c

and transform it to:

    g :: a -> b -> c

Open ghci and play a bit with `curry` and `uncurry` to get the idea!


More information about the Beginners mailing list