tphya...@gmail.com
Subject: Re: [Haskell-cafe] Combining sequences
To: michael rice nowg...@yahoo.com
Cc: Henning Thielemann lemm...@henning-thielemann.de,
haskell-cafe@haskell.org
Date: Monday, April 6, 2009, 12:26 AM
It's not in hugs, nor in ghc.
It's just in hackage. However, by the looks
Am Montag 06 April 2009 17:12:42 schrieb michael rice:
I downloaded it and it appears more complicated than just adding files to a
directory. There's a setup and a build, and no assurances it will work with
Hugs.
I think I'll wait for more information.
Michael
Try installing it with Cabal:
or directory
[r...@localhost utility-ht-0.0.4]#
--- On Mon, 4/6/09, Daniel Fischer daniel.is.fisc...@web.de wrote:
From: Daniel Fischer daniel.is.fisc...@web.de
Subject: Re: [Haskell-cafe] Combining sequences
To: haskell-cafe@haskell.org
Cc: michael rice nowg...@yahoo.com
Date:
Monday, April 6, 2009, 12
On Mon, 6 Apr 2009, nowg...@yahoo.com wrote:
Michael
[mich...@localhost untitled folder]$ cd utility-ht-0.0.4
[mich...@localhost utility-ht-0.0.4]$ ls
LICENSE Setup.lhs src utility-ht.cabal
[mich...@localhost utility-ht-0.0.4]$ ./Setup.lhs configure --hugs
/usr/bin/env: runhaskell: No such
On Sun, 5 Apr 2009, michael rice wrote:
Thanks. It looks like mergeBy will do the job, but is it available in Hugs?
The package is Haskell98 and needs no further package, thus it should work
with almost every Haskell system.
___
Haskell-Cafe
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..].
Thanks. It looks like mergeBy will do the job, but is it available in Hugs?
Michael
--- On Sun, 4/5/09, Henning Thielemann lemm...@henning-thielemann.de wrote:
From: Henning Thielemann lemm...@henning-thielemann.de
Subject: Re: [Haskell-cafe] Combining sequences
To: michael rice nowg
-thielemann.de
Subject: Re: [Haskell-cafe] Combining sequences
To: michael rice nowg...@yahoo.com
Cc: haskell-cafe@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
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..].
Michael
Here's a pretty straightforward approach:
combine [] ys = ys
combine xs [] = xs
combine (x:xs) (y:ys) | x = y = x : combine xs (y:ys)
| otherwise = y : combine (x:xs) ys
On Sat, Apr 4, 2009 at 8:40 PM, michael rice nowg...@yahoo.com wrote:
Is there a simple
Thanks, guys! This one works perfectly.
I was monkeying with similar logic but wasn't sure about syntax.
Michael
--- On Sat, 4/4/09, Andrew Wagner wagner.and...@gmail.com wrote:
From: Andrew Wagner wagner.and...@gmail.com
Subject: Re: [Haskell-cafe] Combining sequences
To: michael rice nowg
11 matches
Mail list logo