logo

Crowdly

Browser

Add to Chrome

What would be the output if we evaluated the following two lines of Haskell code...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What would be the output if we evaluated the following two lines of Haskell code?

foo (b:a) = b

print(foo [7,8,9,10] )

Note that this is perfectly valid Haskell code - the print function is just Haskell's method for displaying output

0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.concordia.ca?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome