On Jan 17, 9:16 am, Xah Lee <xah...@gmail.com> wrote: > Here's a interesting toy problem posted by Drew Krause to > comp.lang.lisp: > ...
The code in my previous elisp code got a bump. It should be: (defun read-lines (file) "Return a list of lines in FILE." (with-temp-buffer (insert-file-contents file) (split-string (buffer-substring-no-properties 1 (point-max)) "\n" t) ) ) (mapcar (lambda (x) (split-string x " ") ) (read-lines "xxblob.txt") ) The article is now archived at: • A Ruby Illustration of Lisp Problems http://xahlee.org/UnixResource_dir/writ/lisp_problems_by_ruby.html Xah ∑ http://xahlee.org/ ☄ -- http://mail.python.org/mailman/listinfo/python-list