Question: 2. Use recursion on lists to write a Haskell function addAl1 Integer -> [Integer] -[Integer] such that addAll m xs returns the list obtained by

 2. Use recursion on lists to write a Haskell function addAl1

2. Use recursion on lists to write a Haskell function addAl1 Integer -> [Integer] -[Integer] such that addAll m xs returns the list obtained by adding m to each element of xs. For example, addAll 300 [6,7,2,4] returns [306,307,302,304]

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!