[Haskell-cafe] Combining sequences

michael rice nowgate at yahoo.com
Sun Apr 5 23:02:57 EDT 2009

Thanks. It looks like mergeBy will do the job, but is it available in Hugs?


--- On Sun, 4/5/09, Henning Thielemann <lemming at henning-thielemann.de> wrote:

From: Henning Thielemann <lemming at henning-thielemann.de>
Subject: Re: [Haskell-cafe] Combining sequences
To: "michael rice" <nowgate at yahoo.com>
Cc: haskell-cafe at haskell.org
Date: Sunday, April 5, 2009, 9:09 PM

On Sat, 4 Apr 2009, michael rice wrote:

> 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/20090405/9d8d1bf7/attachment.htm

More information about the Haskell-Cafe mailing list