Multiples of Numbers in a List
Posted
by handheldpenguin
on Stack Overflow
See other posts from Stack Overflow
or by handheldpenguin
Published on 2010-04-22T15:26:52Z
Indexed on
2010/04/22
18:23 UTC
Read the original article
Hit count: 134
haskell
How would I print the multiples of a list of given numbers in a merged, sorted list?
I.e.
take 10 (multiples [4,5])
gives
4,5,8,10,12,15,16,20,24,25
I've got it working for lists of size 2 or 1 but I need a more general solution :)
© Stack Overflow or respective owner