Question: Write the specified Haskell functions 1-8 Compute the factorial of n, which is 1*2*3*. .. * n Write a function that takes two lists and
Compute the factorial of n, which is 1*2*3*. .. * n Write a function that takes two lists and returns a list of only those elements that appear in both lists. Write a function that takes a list and an element and returns true if the element appears exactly once in the list.. Remove the leading spaces from a string without using trim or strip Remove the trailing spaces from a string without using trim or strip Remove both the leading and trailing spaces from a string without using trim or strip. (Using your functions from the previous question will make this easier.) Given a list of integers and a number, remove all elements from the list that are evenly divisible by the number. You will probably want to use the mod function. Given a list of sequential numbers starting with 2, return the list with only the prime numbers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
