q1 - What value does the interpreter give for each of the...

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

View Full Document Right Arrow Icon
Pop Quiz 1 CIS 252 — Intro to Computer Science Name: Suppose the following Haskell code is loaded into the Haskell inter- preter (i.e., Ghci): wonder :: Int -> Int -> Int wonder 0 y = y+1 wonder _ 3 = 200 wonder x _ = 500 wonder 0 3 = 800
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: What value does the interpreter give for each of the following expres-sions? (If an error would result, simply write “error”.) • wonder 15 4 • wonder 0 3 • wonder 1 3 • wonder 13 True 27 January 2011...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online