Skip to content
/ reductio Public

Small library to partially evaluate a subset of Clojure given a set of bindings.

Notifications You must be signed in to change notification settings

mks-m/reductio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

reductio

Small library to partially evaluate a subset of Clojure given a set of bindings.

Usage:

(require '[dev.mksm.reductio :refer [deval]])

(def code '(+ a (+ b (+ c d))))

(deval code {})
;; => the same `code` value because no bindings were substituted

(deval code {'a 1})
;; => `(+ 1 (+ b (+ c d)))`, `a` being substituted for `1`

(deval code {'+ + 'c 1 'd 2})
;; => `(+ a (+ b 3))`, `(+ c d)` substituted for it's value

About

Small library to partially evaluate a subset of Clojure given a set of bindings.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published