PasteRack.org
Paste # 49895
2021-01-17 05:39:22

Fork as a new paste.

Paste viewed 176 times.


Embed:

  1. #lang racket
  2. (define (f x) (* x x))
  3.  
  4.   (check-expect (f 42) 1764)
  5.  
  6.   (check-expect (map f '(1 2 3 4 5))
  7.                 (list 1 4 9 16 25))

=>

check-expect: undefined;

 cannot reference an identifier before its definition

  in module: 'm

check-expect: undefined;

 cannot reference an identifier before its definition

  in module: 'm