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
  • 443,496
  • 30
  • 428
  • 555
Bean_Nan
  • 11
  • 2

0 Answers0