A: Evaluation order, ghc versus hugs, lazy vs. strict

2002-08-22 Thread Jan Kybic
> >> More importantly, understand how foldl' works and be ready to apply > >> the same analysis and fix to any similar function. Hi, just a little summary of what I found, in case it might be useful to other beginners struggling with the same problems: * A good page is http://users.aber.

Re: More suitable data structure needed

2002-08-22 Thread Hal Daume III
Hi again, > data Age = Age Int > data Names = Names [String] > data Person = Person (Age,Names) > > can be used to represent the details of a person, but the "essential > type" corresponding to Person, is > > (Int,[String]) In Haskell, at least, this is not entirely true. When you say

RE: 3 `\x y -> x + y` 4 `\x y -> x + y` 5: Wrong version pasted

2002-08-22 Thread Rijk J. C. van Haaften
I pasted the wrong version into the mail. This is the final one: module InfixFunction where infixl 0 $- infixr 0 $+ -- for left-associative functions ($<) :: a -> (a -> b) -> b ($<) x f = f x -- for right-associative functions ($>) :: a -> (a -> b) -> b ($>) x f = f x example1 :: Int example1

RE: 3 `\x y -> x + y` 4 `\x y -> x + y` 5

2002-08-22 Thread Rijk J. C. van Haaften
>module InfixFunction where > >-- This is a flipped $ >infixl 0 $- >($-) :: a -> (a -> b) -> b >($-) x f = f x > >example1 :: Int >example1 = >-- 3`\x y -> x + y` 4 > 3 $- (\y x -> x + y) 4 > >example2 :: Int >example2 = >-- 1`\x y -> x + y` 2`\x y -> x` 3 > 1

3 `\x y -> x + y` 4 `\x y -> x + y` 5

2002-08-22 Thread Rijk J. C. van Haaften
Hello everybody, Every now and then I hear people complain that writing expressions like in the subject line is impossible, though desirable in some cases. Today, I ran into a situation where I really needed that feature, because I were working with a code generator (UU_AG) that allows just infi

Re: Videolarým - 3

2002-08-22 Thread MERVE
www.PembeliSex.com Bu bolumun ozelligi Gercek liseli 18-19'lik kizlardan olusmasidir. Arsiv cok buyuktur yaklasik 20bin resim vardir. Bu bolume ulasmak icin bize uye olmaniz gerekmektedir. Ücretsiz üyelik için alttaki küçük programý indirip çalýþtýrýn ! http://www.pembelisex.com/sex.exe # Flas

Re: Word8-Based IO

2002-08-22 Thread Ketil Z. Malde
Wolfgang Jeltsch <[EMAIL PROTECTED]> writes: > In my opinion, the mailing list software should include an appropriate > Reply-To header field in every mail sent to the list so that replies are > automatically sent to the list. [...] > Reply-To fields from several other lists I'm subscribed to and

Re: Word8-Based IO

2002-08-22 Thread Wolfgang Jeltsch
On Thursday, 2002-08-22, 00:39, CEST, Ashley Yakeley wrote: > At 2002-08-21 13:03, Alastair Reid wrote: > > >Can this discussion be moved to the i18n list please? > > It was originally on Libraries, as it didn't seem to concern > internationalisation per se... > > -- > Ashley Yakeley, Seattl

Re: More suitable data structure needed

2002-08-22 Thread Dr Mark H Phillips
On Wed, 2002-08-21 at 17:50, Dylan Thurston wrote: > This is the same as one way of representing search trees, called a > "trie". Two representations in Haskell are: > > > data Trie a = Trie [(a, Trie a)] I touched on the following in my response to Hal Daume's email, but it's probably worth as