I wrote so:
Code: Select all
(define (print-ln) (print (join (append (args) (list "\n")))))
(append lst (list one-element))
... I use 'print-ln' insead of println under windows to handle unix-generated text files.
Code: Select all
(define (print-ln) (print (join (append (args) (list "\n")))))
Code: Select all
(define (mypush) (flat (append (args))))
> (set 'lst (mypush 1 2 3))
(1 2 3)
> (mypush lst 4)
(1 2 3 4)
Code: Select all
> (set 'lst (mypush 1 2 3))
(1 2 3)
> (mypush lst 4)
(1 2 3 4)
> (println lst)
(1 2 3)