On Fri, Jan 15, 2021 at 08:13:58PM +0100, Davide BERTOLOTTO wrote:
> In a more functional way:

Oh, I see! The original question was about pipes. Directly in Lisp it is of
course easier. I would use 'replace':

   (sort
      (in "5.input"
         (make
            (while (line)
               (link
                  (pack (replace @ "F" 0 "B" 1 "L" 0 "R" 1)) ) ) ) ) )

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to