optional_assignment.ion 206 B

12345678910111213141516171819
  1. let a ?= 5
  2. echo $a
  3. let a ?= 10
  4. echo $a
  5. let b ?= [ 1 2 3 ]
  6. echo @b
  7. let b ?= [ 4 5 6 ]
  8. echo @b
  9. let c d e ?= [ 1 2 3 ] hello 5
  10. echo @c
  11. echo $d
  12. echo $e
  13. let c d e ?= [ 4 5 6 ] world 10
  14. echo @c
  15. echo $d
  16. echo $e