I’m very new to Haskell, and I have a simple question.
What function can I use with a and b that will result in a, b times.
Example:
a = 4 | b = 3
Would return:
[4, 4, 4]
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
replicate:will be:
When you know what’s the type of the function you need (in this case it was quite obvious that the function you needed had a type similar to
Int -> a -> [a]) you can use Hoogle in order to find it.