• @[email protected]
      link
      fedilink
      31 year ago

      Can you explain this out a bit more? I’m a self-taught programmer, of sorts, and I’m not quite getting this…

      • @nicolairathjen
        link
        31 year ago

        A reducer “reduces” a list of values to one value with some function by applying it to 2 values at the time.

        For instance if you reduce the list [1, 2, 3] with the sum function you get (1 + (2 + 3)) = 6.

    • @nicolairathjen
      link
      11 year ago

      Definitely, although I’m sure that under the hood it’s all the same. Some (albeit high-level) languages also support a sum function that takes a generator as an input, which seems pretty close to this math notation.