[Haskell-cafe] Combining sequences

michael rice nowgate at yahoo.com
Sat Apr 4 20:40:33 EDT 2009

Is there a simple way to combine two sequences that are in ascending order into a single sequence that's also in ascending order? An example would be the squares [1,4,9,16,25..] combined with the cubes [1,8,27,64,125..] to form [1,1,4,8,9,16,25,27..].


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090404/cbe80822/attachment.htm

More information about the Haskell-Cafe mailing list