Question: What is the type inferred for the following function? let rec succPairs(list) - match list with 0 :: xi :: xs -> (x, x1) +

 What is the type inferred for the following function? let rec

What is the type inferred for the following function? let rec succPairs(list) - match list with 0 :: xi :: xs -> (x, x1) + succPairs(x1.:xs) val succPairs : list'a -> a list O val succPairs : lista -> (aa) list val succPairs : list'a list -> (aa) list val succPairs : lista list -> a list val succPairs : list (aa) list -> ('a'a) list

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!