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