• @xmunk
    link
    English
    4
    edit-2
    8 months ago

    I like to explain it as function currying to computer savvy folks… your first task is to do the first chunk, your second and only remaining task is to create a new task to do next.

    https://en.m.wikipedia.org/wiki/Currying

    Hack the Planet your Brain!

    • @[email protected]
      link
      fedilink
      English
      3
      edit-2
      8 months ago

      Uncurrying is the dual transformation to currying, and can be seen as a form of defunctionalization. It takes a function f whose return value is another function g, and yields a new function f’ that takes as parameters the arguments for both f and g, and returns, as a result, the application of f and subsequently, g, to those arguments. The process can be iterated.

      none of these words are in the bible

      • @xmunk
        link
        English
        28 months ago

        Oh, sorry, that’s from the book of Mormon.