Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

swap two variables

Name: Anonymous 2007-09-30 7:55 ID:F38kBPKI

hi

(setq x (prog2 0 y (setq y x)))

i bet your language can't do it.

Name: Anonymous 2007-10-01 8:05 ID:BjIIjE7l

(define (swap-car-with-other-car x-y) (cons (cdr x-y) (car y-x)))

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List