Question: Write a recursive Haskell function: Write a recursive Haskell function marker :: Int -> Int -> Char -> String i ch returns a string of

Write a recursive Haskell function:

Write a recursive Haskell function: Write a recursive Haskell function marker ::

Write a recursive Haskell function marker :: Int -> Int -> Char -> String i ch returns a string of length n: the ith character such that marker n is ,#,, and every other character is ch. (If n is negative, the empty list/string should be returned. If i is less than one or larger than n, the resulting list contains only instances of ch.) For example, the function has the following behavior: Main> marker 8 3 y' Ayy#yyyyy" Main> marker 5 9 'y' Main marker 10 10'e' Write a recursive Haskell function marker :: Int -> Int -> Char -> String i ch returns a string of length n: the ith character such that marker n is ,#,, and every other character is ch. (If n is negative, the empty list/string should be returned. If i is less than one or larger than n, the resulting list contains only instances of ch.) For example, the function has the following behavior: Main> marker 8 3 y' Ayy#yyyyy" Main> marker 5 9 'y' Main marker 10 10'e

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!