printable version

Test 2 Solutions

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]

Problem X2.1.

[8 pts] What is the most general possible type for the following Haskell function? Describe the type using Haskell syntax.

threshold f z x = if f x < z then f x else z