Skip to content

Instantly share code, notes, and snippets.

@kanghyojun
Created October 27, 2011 15:32
Show Gist options
  • Save kanghyojun/1319902 to your computer and use it in GitHub Desktop.
Save kanghyojun/1319902 to your computer and use it in GitHub Desktop.
#lang racket
(define (get-list l n)
(if (= n 0)
(car l)
(get-list (cdr l) (- n 1))))
(define x (list 1 2 3 4 5))
(display (get-list x 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment