https://github.com/swr1bm86/letrec
letrec support for Clojure
https://github.com/swr1bm86/letrec
clojure metaprogramming recursion
Last synced: about 2 months ago
JSON representation
letrec support for Clojure
- Host: GitHub
- URL: https://github.com/swr1bm86/letrec
- Owner: swr1bm86
- License: epl-1.0
- Created: 2016-03-31T11:25:16.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-10T15:33:30.000Z (about 10 years ago)
- Last Synced: 2026-04-25T15:15:36.028Z (about 2 months ago)
- Topics: clojure, metaprogramming, recursion
- Language: Clojure
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# letrec
functions, lazy sequences, delays and the like can refer to other bindings regardless of the order in which they appear in the letrec form.
[](https://travis-ci.org/zjhmale/uml)
## Installation
[](https://clojars.org/zjhmale/letrec)
## Usage
```clojure
:dependencies [[zjhmale/letrec "0.1.0"]]
```
## Examples
```clojure
(require [letrec.sweet :refer :all])
(letrec [fact (fn [n]
(if (= n 1)
1
(* n (fact (dec n)))))]
(fact 5))
```
## License
Copyright © 2015 Michał Marczyk
Distributed under the Eclipse Public License, the same as Clojure.