Welcome to the CHICKEN Scheme pasting service

case on empty list added by gahr on Mon Mar 20 08:59:40 2023

(import (scheme) (chicken base))

(map (lambda (l)
       (case l
         ((()) (print "it's empty: " l))            ; this one..
         (else (print "it's not empty: " l)))
       (case l
         ('() (print "it's empty: " l))             ; ...or this one?
         (else (print "it's not empty: " l))))
     (list '() '("a" "b" "c")))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What type of object does `map' expect as second argument?
Visually impaired? Let me spell it for you (wav file) download WAV