Question: 3. (a) Write a Haskell function to return the last element of a non-empty list. Include the type of your function in your answer. [10

3. (a) Write a Haskell function to return the last element of a non-empty list. Include the type of your function in your answer. [10 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
