#3 [wip] Add fbo answers for homework 1
Opened by fbo. Modified
fbo/cis194 fbo-homework1  into  master

no initial comment

Build failed.

nicely done!

1 new commit added

  • Add ex3

Build failed.

1 new commit added

  • Provided ex4 and started ex5

Build failed.

"if x then True else False" can be written as "x" when x evaluate as a Bool ;)

validate x = mod ( sumDigits (doubleEveryOther (toDigits x))) 10 == 0

"type x = y" actually just creates an alias for "y" named "x". Thus Peg is a String, and "a" is already a String. That means you can call (hanois 1 "a" "b" "c") directly.