Skip to content

Instantly share code, notes, and snippets.

View juanibiapina's full-sized avatar
💭
I design systems

Juan Ibiapina juanibiapina

💭
I design systems
View GitHub Profile
(def :f (function [:x] { (some-other-function x) } ))
(def :collatz (function [:n] { (if (= n 1)
{ (cons 1 nil) }
{ (cons n
(if (even? n)
{ (collatz (/ n 2)) }
{ (collatz (+ (* 3 n) 1)) } )) } )
} ))
@juanibiapina
juanibiapina / test.rkt
Created November 27, 2013 17:10
Name conflict with Racket's require
(define check-equal? 1)
(require rackunit)