Snippets created by Neil Carrier

  • Continuation-Passing Mnemonics

    Continuations provide a means whereby heap space can be traded for stack depth (heap space being generally more plentiful than stack depth). They are especially useful where tail recursion is not possible. Here are a couple of simple continuation examples that can be extended to cover more complex scenarios.

    88 people like this

    Posted: 6 years ago by Neil Carrier

  • Cartesian Product of Sequences

    Computes the Cartesian product of a sequence of sequences. See corresponding example for a list of lists.

    46 people like this

    Posted: 6 years ago by Neil Carrier