…from Core.Arity
Folktale’s early versions made heavy use of currying to make it easy to configure some functions partially. This interacted poorly with JavaScript’s curried functions, often resulting in confusing bugs due to application unrolling.
Folktale 2 tries to make better use of ECMAScript 2015+ features instead, and thus avoids currying-by-default. This makes the use of Core.Arity
largely unnecessary for Folktale functions.
If one wants to restrict the arity of other functions, the recommended way is now to use an arrow function.
Previously:
Now: