Question

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

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]

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ting ·the numbes from tho irynt dist ag mary Jimeg mpla; dthe ist passed

Add a comment
Know the answer?
Add Answer to:
Using Haskell to write a program: fillNum fillNum takes an integer and a list of numbers to build...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT