Things I picked up while reading the getting started guide:
- You can sort two arbitrary data types:
1 < atom
evaluates to true. +
isn't overloaded like it is in Ruby -- it's only used for arithmetic. If you want to add two arrays together, use++
; two strings, use<>
.- Single-quoted strings are character lists, and lists that are composed of ASCII character codes will be represented as single-quoted strings
- Double-quotes strings are actually a different data type than single-quoted strings so
'foo' != "foo"
- Lists are linked lists, tuples are stored contiguously in memory.
- If you see "size" it's a performant operation, if you see "length" then you know it will scale as the data structure grows.