Skip to content

pedro-bento/Lisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Lisp

Lisp Interpreter

Example use

> (define l (list 1 2 3))
L

> (reverse l)
(3 2 1)

> (reverse (list 1 2 3))
(3 2 1)

> (map + l l)
(2 4 6)

> (define (incr x) (+ x 1))
INCR

> (map incr l)
(2 3 4)

> (define (fact x) (if (= x 0) 1 (* x (fact (- x 1)))))
FACT

> (fact 10)
3628800

About

Lisp Interpreter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published