(compare-and-set! [a oldval newval])Atomically sets the value of atom to newval if and only if the
current value of the atom is equal to oldval. Returns true if
set happened, else false.
Examples
No examples yet. Be the first to add one!
(compare-and-set! [a oldval newval])No examples yet. Be the first to add one!