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.