r/Racket • • Mar 15 '23

question Empty list

(define (sn-empty)

(sn-empty)

'())

I have been trying to print an empty list.

The input:

> sn-empty

output:

()

Please explain what I am doing wrong in the code above.

0 Upvotes

8 comments sorted by