Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Infinisil/nixlisp
https://github.com/Infinisil/nixlisp
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/Infinisil/nixlisp
- Owner: infinisil
- License: mit
- Created: 2018-10-04T21:00:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-18T11:24:29.000Z (almost 3 years ago)
- Last Synced: 2024-08-03T13:06:25.988Z (4 months ago)
- Language: Nix
- Homepage:
- Size: 4.88 KB
- Stars: 60
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.org
- License: LICENSE
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