Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We can convert data of one type to another using the 'as' keyword:

Code Block
assert ('a100' as Integer) == 97
  //Unicode (and ASCII) representation of character 'a'
100

Sometimes, we need to use a more efficient type of list known as an array, where the type of each element must be the same. Arrays can't be represented directly in the syntax, but we can convert a list to one easily:

...