[Haskell-beginners] List Function

Nathan Holden nathanmholden at gmail.com
Wed Apr 29 22:25:43 EDT 2009


I don't know what you'd call it. Is there a function in any of the basic
functions that does this something like this:

Sending two lists, [1,2,3] and [2,3,4] it would return
[(1,4),(1,5),(1,6),(2,4),(2,5),(2,6),(3,4),(3,5),(3,6)]. I managed to code
my way into returning a list of lists, which works. But it seemed like a
very basic list/matrix function, so I honestly believe that the Haskell
designers probably would've put it in.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20090429/16efece4/attachment-0001.htm


More information about the Beginners mailing list