PasteRack.org
Paste # 12001
2016-10-19 15:55:49

Forked from paste # 53104.

Fork as a new paste.

Paste viewed 57 times.


Embed:

  1. #lang racket
  2.  
  3. (define-syntax-rule (ite cond thn els)
  4.   (if cond thn els))
  5.  
  6. (define x 3)
  7. (ite (= x 3) (displayln "x is 3") (displayln "x is NOT 3"))

=>

x is 3