Posted By

magicrebirth on 12/12/09


Tagged

textmate procedure scheme argument optionalargument


Versions (?)

scheme: check for optional arguments


 / Published in: Scheme
 

  1. (define-macro (p r . otherstuff)
  2. `(if (null? (list ,@otherstuff))
  3. (print ,r)
  4. (print ,@otherstuff)))
  5.  
  6. (p 'c 'ciao)

Report this snippet  

You need to login to post a comment.