• EatYouWell@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    11 months ago

    You don’t have a huge list of tasks. You have a single task, then you find another single task.

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

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

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