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: about 2 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-10-11T23:39:51.837Z (2 months ago)
- Language: Nix
- Homepage:
- Size: 4.88 KB
- Stars: 61
- 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