8 lines
174 B
Racket
8 lines
174 B
Racket
#lang racket
|
|
|
|
;; create a list
|
|
(list 1 2 3 4)
|
|
;; create a list of size N
|
|
(make-list 100 0)
|
|
;; add an element to the front of a list (non-destructively)
|
|
(cons 1 (list 2 3 4))
|