Hello, On Sun, 24 May 2020 08:23:29 -0400 David Mertz <mertz@gnosis.cx> wrote:
Hi Steven,
On Sun, May 24, 2020, 8:14 AM Steven D'Aprano
sorted(paths, key=lenāstr, reverse=True) *semi-wink*
Do you have an evil twin with whom you share email.
Yesterday you were arguing against functional programming style on the grounds that filtering based on a predicate was too obscure represented as 'filter(pred, ...))'
Today you want full function composition.
Fwiw, I like function composition. This example makes a good case for it. Too bad that symbol isn't on most keyboards. I don't think 'compose(len, str)' looks so terrible, but it's longer.
Could find a use for that @ operator, finally. Note to myself: should implement that for my pycopy-dev dialect (https://github.com/pfalcon/pycopy). Currently it allows to override methods on (selected) builtin types, but not operators. Need to put that on TODO. -- Best regards, Paul mailto:pmiscml@gmail.com