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 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
Get step-by-step solutions from verified subject matter experts
