Hacker News new | ask | show | jobs
by ionfish 5102 days ago
Yes, it does. This is true in Haskell too, of course.

    subtract :: (Int, Int) -> Int
    subtract (n, m) = n - m
    
    fiveMinus = (curry subtract) 5
    minusFive = ???
    
    subtract' = \n m -> n - m
    fiveMinus =   \m -> 5 - m
    minusFive =   \m -> m - 5
1 comments

Yes, what does? Are you agreeing or disagreeing with my statement that currying is useless? I think you're agreeing.