You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dynamic-lookups.l2 213B

12345678910111213141516
  1. idx := 0
  2. arr := [100 20 30]
  3. print arr.(idx)
  4. arr.(+ idx 1) = 50
  5. print arr
  6. print [10 20 30].(+ 1 1)
  7. obj := {}
  8. obj.('hello) = "what's up"
  9. print obj.hello
  10. get-ident := {'foo}
  11. obj.(get-ident()) = 100
  12. print obj.foo