This section is ENORMOUS! (see TeachProgramming repo for some trivial examples)
-
[async]
-
javascript.info/currying-partials
- Currying is an advanced technique of working with functions. It’s used not only in JavaScript, but in other languages as well.
- Currying is a transformation of functions that translates a function from callable as f(a, b, c) into callable as f(a)(b)(c).
-
Making a Game in Janet, Part 3: The problem with macros
- Deep dive into lisp macros - very deep - describes problems with shadowing namespaces
-
Features of a dream programming language
- todo
-
- definitions merely compose other functions
-
def example(x): return baz(bar(foo(x)))
-
from functools import partial, reduce def compose(*fns): return partial(reduce, lambda v, fn: fn(v), fns) example = compose(foo, bar, baz)