- FINALLY a language (that I'm aware of) where True !== 1 and False !== 0. I'd have to take off YOUR shoes to count the number of times that's bitten me in the ass. For people who don't know me, I wear sandals so no shoe-taking-offing is ever needed.
- The it primitive is pretty neat and has possibilities:
True || False
>>True
it
>>True
not it
>>False
- I like the /= representation of !=
- Hmmm...lists are interesting.
let x = [1,2]
[1,2]
0:x
[0,1,2]
So clearly the : primitive appends elements to the beginning of a list. I thought that perhaps [0,1]:x might produce [[0,1],[1,2]]. It turns out this is not the case, and instead throws an error that essentially amount to a data type mismatch. To achieve the desired result, one must type:
[0,1]:[x]
...such that both arguments are lists, I assume. Weird. -
putStrLn "Hi"
Hi
putStrLn 'Hi'
:1:11:
lexical error in string/character literal at character 'i'
D'oh. I prefer to use single quotes with my strings. Not a deal breaker though.
Well, as thrilling as I'm sure this has been for you, I'm going to stop and actually get to coding.