PasteRack.org
Paste # 76692
2016-10-19 15:57:06

Forked from paste # 12001.

Fork as a new paste.

Paste viewed 47 times.


Embed:

  1. #lang racket
  2.  
  3.  
  4.  
  5. (define (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

x is NOT 3