Skip to content

Instantly share code, notes, and snippets.

@samth
Created October 12, 2012 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samth/3876906 to your computer and use it in GitHub Desktop.
Save samth/3876906 to your computer and use it in GitHub Desktop.
#lang racket
(require syntax/parse/define)
(define-simple-macro (if (~seq test result) ... final)
(cond [test result] ... [else final]))
(if (even? 7) "seven" (odd? 8) "eight" "neither")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment