reading file to list

Xah Lee xahlee at
Sat Jan 17 18:55:43 CET 2009

On Jan 17, 9:34 am, Xah Lee <xah... at> wrote:
> The code in my previous elisp code got a bump. It should be:
> ...
> • A Ruby Illustration of Lisp Problems

Sorry again. More correction:

(defun read-lines (file)
  "Return a list of lines in FILE."
    (insert-file-contents file)
     (buffer-substring-no-properties 1 (point-max)) "\n" t)

 (lambda (x)
    (lambda (y) (string-to-number y) )
    (split-string x " ")
 (read-lines "xxblob.txt")

this is last post of correction.


More information about the Python-list mailing list