<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thanks. It looks like mergeBy will do the job, but is it available in Hugs?<br><br>Michael<br><br><br>--- On <b>Sun, 4/5/09, Henning Thielemann <i>&lt;lemming@henning-thielemann.de&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Henning Thielemann &lt;lemming@henning-thielemann.de&gt;<br>Subject: Re: [Haskell-cafe] Combining sequences<br>To: "michael rice" &lt;nowgate@yahoo.com&gt;<br>Cc: haskell-cafe@haskell.org<br>Date: Sunday, April 5, 2009, 9:09 PM<br><br><div class="plainMail"><br>On Sat, 4 Apr 2009, michael rice wrote:<br><br>&gt; Is there a simple way to combine two sequences that are in ascending order into a single<br>&gt; sequence that's also in ascending order? An example would be the squares [1,4,9,16,25..]<br>&gt; combined with the cubes [1,8,27,64,125..] to form
 [1,1,4,8,9,16,25,27..].<br><br><a href="http://hackage.haskell.org/packages/archive/utility-ht/0.0.4/doc/html/Data-List-HT.html#v%3AmergeBy" target="_blank">http://hackage.haskell.org/packages/archive/utility-ht/0.0.4/doc/html/Data-List-HT.html#v%3AmergeBy</a><br></div></blockquote></td></tr></table><br>