set.zy 253 B

1234567891011
  1. // should be able to set on the output of arrayidx
  2. (def ar [4 5 6])
  3. (def i 2)
  4. (set (arrayidx ar [i]) 99)
  5. (assert {ar[i] == 99})
  6. (= {ar[i]} 1010101)
  7. // series of infix ;-separated expressions should all be evaluated
  8. { b = 2; d = 4 }
  9. (assert {b+2 == d})