Question: in Haskell, Write a function count 38 that counts the occurrences of consecutive 3 and 8 in a list. For example, count38 [3,3,8]=1, count38 [3,8,3,8]==2,count38[3,8,8,8]==1,
in Haskell,

Write a function count 38 that counts the occurrences of consecutive 3 and 8 in a list. For example, count38 [3,3,8]=1, count38 [3,8,3,8]==2,count38[3,8,8,8]==1, and count38 [3,5,8]==0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
