3 ms·
Which of the various meanings of the word 'functor' are you using here?
by eru 3y ago
Which of the various meanings of the word 'functor' are you using here?
- hinkley 3y agoFunction that returns a function. You pass your counter into the function, it returns a function that remembers the original value, not the value as it keeps iterating later on in the caller.
- eru 3y agoThat's just a higher order function? That's an interesting definition. I thought you would either go with https://en.wikipedia.org/wiki/Functor_(functional_programming) https://en.wikipedia.org/wiki/Functor_(functional_programmin... or with https://en.wikipedia.org/wiki/Function_object https://en.wikipedia.org/wiki/Function_object https://en.wikipedia.org/wiki/Functor_(disambiguation) https://en.wikipedia.org/wiki/Functor_(disambiguation) has a few more choices, but doesn't seem to have yours.
- Sharlin 3y agoFunctor must be one of the worst overloaded terms in all of computing.