Question: 1 a)What is the principal difference between statically typed and dynamically typed languages? Mention one statically typed language and one dynamically typed language. b) Consider

1 a)What is the principal difference between statically typed and dynamically typed languages? Mention one statically typed language and one dynamically typed language.

b) Consider the following Haskell functions: step x y = y + 1 mystery iL = foldr step 0 iL

What will the following expression evaluate to? Show each recursive call with relevant parameters and describe what the function calculates.

mystery ["abc","bc","ced","bc","aeiou"]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!