Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
123456789101112131415161718192021 |
- # Lookup array values dynamically
- idx := 0
- arr := [100 20 30]
- print arr.(idx)
-
- # More complex expressions in the subscript operation
- arr.(+ idx 1) = 50
- print arr
-
- # Lookup into a temporary
- print [10 20 30].(+ 1 1)
-
- # Lookup into a namespace by atom
- obj := {}
- obj.('hello) = "what's up"
- print obj.hello
-
- # More complicated expression again
- get-ident := {'foo}
- obj.(get-ident()) = 100
- print obj.foo
|