So basically using the shell of something like Xerox's PARC Interlisp-D and threading macros.
I would be something like this,
(-> ls myfunc sort -r -n (> list))