0

I get non exhaustive patterns exception for the following code

bean :: [a] -> Int -> a
bean [a] b = last $ take (b + 1) [a]

I don't understand what I am doing wrong here.

Willem Van Onsem
  • 397,926
  • 29
  • 362
  • 485
Bean_Nan
  • 11
  • 2

0 Answers0