Tuesday, May 30, 2017

Curry or Partial Application?



A lot of people new to functional programming get confused about the difference between partial application and currying. In fact, until recently it was rare to see real uses of curry in JavaScript, and many of the utility functions calling themselves `curry()` weren’t curry functions at all.

No comments:

Finite-State Machines, Part 1: Modeling with Haskell Data Types

Stateful programs often become complex beasts as they grow. Program state incohesively spread across a bunch of variables, spuriously guar...