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

ACL2

Name: Anonymous 2014-07-06 1:33

(defun replace-ints (x)

(cond ((endp x) nil)

((integerp (car x))
(cons 'I
(replace-ints (cdr x))))

(t
(cons (car x)
(replace-ints (cdr x))))))

Name: Anonymous 2014-07-06 12:54

>>6
Advantages
Easier to read, compare: (+ (expt 2 30) 2) with [+ [expt 2 30] 2]
IHBT

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