Skip to content

Instantly share code, notes, and snippets.

@briandk
Created February 18, 2013 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save briandk/4977908 to your computer and use it in GitHub Desktop.
Save briandk/4977908 to your computer and use it in GitHub Desktop.
A quick test of a function to find the length of a list in Racket.
(define (my-length lst)
(cond
[(empty? lst) 0]
[else (+ 1 (my-length (rest lst)))]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment