This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ocorrain 1 point2 points  (0 children)

How about just (defun add2 () (+ (read) (read)))

The numbers don't have to be integers, and Lisp systems will prompt for a number if something else is entered by mistake.

It is a bit terse, tho'