• xmunk
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 year 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!

    • TonyTonyChopper@mander.xyz
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      1 year 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
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

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