Skip to content

Instantly share code, notes, and snippets.

@SSARCandy
Last active August 29, 2015 14:19
Show Gist options
  • Save SSARCandy/c2031bbb432a2f7201c4 to your computer and use it in GitHub Desktop.
Save SSARCandy/c2031bbb432a2f7201c4 to your computer and use it in GitHub Desktop.
head [] --Head error
tail [] --Tail error
3 : 5 --Cons error
head (5 : (tail (1 : 2 : []))) --5
tail (1 : 2 : 3 : []) -- [2,3]
tail (1 : []) -- []
1 + 2 : 3 * 4 : 5 : 6 : [] --[3,12,5,6]
(2, 2) --(2, 2)
(1 + 2 : 3 * 4 : 5 : 6 : [], [], True, 0) --([3,12,5,6], [], True, 0)
--([], False, 2)
if ((not (not True)) && (False || True)) then
([], False, 2)
else
if (1 * 1 == 1) || (2 * 3 == 1 + 5) then
(1 + 2 : 3 * 4 : 5 : 6 : [], True, 0)
else
([], False, 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment