Closed danprince closed 8 years ago
Consider including a port for Clojure's atom type.
import { atom, swap, reset, watch } from 'zaphod'; const counter = atom(0); counter::watch(n => console.log(n)); counter::swap(inc) // log "1" counter::reset(-1) // log "-1"
Consider including a port for Clojure's atom type.