assign.zy 207 B

12345678910111213
  1. // assignment
  2. (def a 10)
  3. // -- assignment through dotsym eliminated in favor of infix now.
  4. //(.a = 24)
  5. //(assert (== 24 a))
  6. // assignment with := works
  7. (b := 2)
  8. (assert (== b 2))
  9. (g:=2)
  10. (assert (== g 2))