PasteRack.org
Paste # 81764
2020-05-10 03:27:18

Fork as a new paste.

Paste viewed 96 times.


Embed:

  1. #lang racket
  2. (require racket/generator)
  3. (define id (generator (a b)
  4.               (yield (cons a b))))
  5. (display (id 2 null))
  6. (display (id 3 null))

=>

(2)

result arity mismatch;

 expected number of values not received

  expected: 1

  received: 2

  values...:

   3

   '()