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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here