Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/infinisil/nixlisp


https://github.com/infinisil/nixlisp

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

* Nixlisp

Lisp in Nix!

** Usage

#+BEGIN_SRC nix
with import ./lisp.nix { a = null; }; eval
(defun fib (n)
(defun fib2 (a b n)
(iff (lt n 2) b
(def (next (plus a b))
(fib2 b next (minus n 1))))
(fib2 0 1 n))
(fib 60))
#+END_SRC