PasteRack.org
Paste # 89736
2019-04-11 10:49:11

Fork as a new paste.

Paste viewed 336 times.


Embed:

  1. #lang racket
  2. ;;repeat : symbol natural -> los
  3. ;;produce a list with symbols
  4. (define (repeat symbol natural)
  5.   (cond
  6.    [(zero? natural) empty]
  7.    [else (cons symbol ( repeat symbol (sub1 natural)))]))
  8. (repeat bets 3)

=>

bets: undefined;

 cannot reference an identifier before its definition

  in module: 'm