News for hackers. Stuff that matters.
Re:WTFPython – Understanding Python through surprising snippets by WoodTree on Monday December 23, 2019 @06:28AM (#21862968)
Map, filter, and fold are higher order functions, functions which take functions as parameters.

You are misusing the word callback. A callback is a function passed to another thread that will maybe be invoked later as a response (like it calls you back).

Re:WTFPython – Understanding Python through surprising snippets by zbentley on Monday December 23, 2019 @07:54AM (#21863298)
That's not what a callback is. A callback is just a function passed to an outer function that the outer function may call.

Even MDN uses the term callback to describe e.g. the argument to 'map': https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

In contrast, Lodash goes out of its way not to use the term "callback", presumably to avoid confusion since it's a place where many functions-that-take-a-function-argument do not call the provided function, e.g. https://lodash.com/docs/#curry

Re:WTFPython – Understanding Python through surprising snippets by BiteCode_dev on Monday December 23, 2019 @07:28AM (#21863204)