jan27 - numOne Int numOne = 17 numTwo Integer numTwo = 300...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
thrice :: Int -> Int thrice n = 3*n isPositive :: Int -> Bool isPositive num = (num > 0) mystery :: Int -> Int -> Int mystery x y = (thrice x) + y contrived :: Int -> Bool -> Int contrived 13 b = -7 contrived m True = m+1 contrived 3 False = 0 contrived m b = m
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: numOne :: Int numOne = 17 numTwo :: Integer numTwo = 300 threeEqual :: Int -> Int -> Int -> Bool threeEqual x y z = (x == y) && (y == z) fun1, fun2, fun3, fun4 :: Int -> Int fun1 x = x + 1 fun2 y = y + 2 fun3 x = x + 10 fun4 y = y *20...
View Full Document

This note was uploaded on 02/19/2011 for the course CIS 325 taught by Professor Worden during the Spring '11 term at Syracuse.

Ask a homework question - tutors are online