PasteRack.org
Paste # 16719
2016-06-28 17:31:42

Fork as a new paste.

Paste viewed 45 times.


Embed:

  1. #lang racket
  2. (define(z l)(cons(if(>(car l)(cdar l))
  3.                     (list (car l))(car l))(if(<(car l)(cdar l))(list (z l))(z l))))
  4.  (display (z (list 7, 3, 1, -8, 4, 8, 2, -9, 2, 8)))

=>

eval:3:0: unquote: not in quasiquote

  in: (unquote 3)