Write a Haskell recursive function pascal() that returns the nth line of the Pascal triangle. For example: if user types [11] as input (input type should be an integer list) then the program should...


Write a Haskell recursive function pascal() that returns the nth line of the Pascal triangle. For example: if user types [11] as input (input type should be an integer list) then the program should return the next sequence of numbers, in this case it would be [1 2 1].  Use function ZIP for returning a list.



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here