Clojure
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/propagator
test/propagator/test
.gitignore
README.md
project.clj

README.md

propagator

Implementation of Propagators from The Art of the Propagator

Usage

user> (use 'propagator.core 'propagator.ops)
user> (do
   (def a (make-cell))
   (def b (make-cell))
   (def z (make-cell))
   (def c (make-cell))
   (def d (make-cell))
   (def e (make-cell))
   (def f (make-cell))
   (def g (make-cell))
   (def h (make-cell))
   (adder a b z c)
   (subtractor c d e)
   (subtractor c f g)
   (>? e g h)
   (add-content a 3)
   (add-content b 8)
   (add-content z 1)
   (add-content d 3)
   (add-content f 4))

user> @c
12
user> @e
9
user> @g
8
user> @h
true

License

Copyright (C) 2010 Travis Vachon

Distributed under the Eclipse Public License, the same as Clojure.