In a
previous post I said:
The fun really begins when I can say something likeCL-USER 218 > \ls | (each line (do-something-with line))
This is silly, of course. It'd be more like
CL-USER 218 > (mapcar #'do-something-with-line
(lines \ls))
In fact, this already works:
CL-USER 285 > (format t "~{~S~%~}" (lines \ls -l tmp))
"total 1240"
"-rw-r--r-- 1 clappl tivadm 633492 Apr 20 02:00 find.out.gz"
"drwxr-xr-x 2 clappl tivadm 256 Apr 16 17:23 visfilep1"
"0"
NILSo I guess the fun has begun.
*laugh*tags: lisp
links: digg this del.icio.us technorati reddit