# Using Haskell to write a program: fillNum fillNum takes an integer and a list of numbers to build...

###### Question:

Using Haskell to write a program: fillNum

fillNum takes an integer and a list of numbers to build a list of the specified length made up by repeating the numbers from the input list as many times as required. That is, the output list has the specified length same as the length specified by the input integer.

For example:

fillNum 4 [5,6,7,8,9,10] should output [5,6,7,8]

fillNum 9 [4,3,2,1] should output [4,3,2,1,4,3,2,1,4]

fillNum 7 [1,2,3] should output [1,2,3,1,2,3,1]

#### Similar Solved Questions

##### 1. Consider the SN2 reaction shown below and answer the following questions. Br + acetone NaSCH—...
1. Consider the SN2 reaction shown below and answer the following questions. Br + acetone NaSCH— ^ SCH3 + NaBr A. Write the rate law for the reaction. B. Identify the nucleophile and the electrophile in the reaction. C. State how each of the following factors would affect the rate of the react...
##### How do you multiply  (x+h)^3?
How do you multiply  (x+h)^3?...