Browse Source

Checkpointing

main
Mark Cornick 6 months ago
parent
commit
577f20885d
Signed by: mcornick GPG Key ID: 9435772627061005
  1. 6
      baby.hs

6
baby.hs

@ -1,2 +1,6 @@
doubleMe x = x + x
doubleUs x y = x * 2 + y * 2
-- doubleUs x y = x * 2 + y * 2
doubleUs x y = doubleMe x + doubleMe y
doubleSmallNumber x = if x > 100
then x
doubleSmallNumber' x = (if x > 100 then x else x*2) + 1

Loading…
Cancel
Save