PasteRack.org
Paste # 73785
2016-10-19 16:02:28

Forked from paste # 76692.

Fork as a new paste.

Paste viewed 37 times.


Embed:

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

=>

x is 3