PasteRack.org
Paste # 55765
2018-10-30 09:40:12

Forked from paste # 7838.

Fork as a new paste.

Paste viewed 2662 times.


Embed:

dumb thing

  1. #lang racket
  2. (define (xs->image total some-xs foreground background)
  3.   (local [(define (represent x) (if (element? x some-xs) ground) (else barrier))]
  4.     (define (T image n) (if (= n total) image) (else (T (beside image (represent (+ n 1))) (+ n 1))))
  5.     (T (represent 0) 0)))

=>

eval:2:0: else: not allowed as an expression

  in: (else barrier)