#haskell - Fri 2 Mar 2007 between 19:13 and 19:28

NY Lost Funds



lambdabothttp://www.haskell.edu/archive/haskell_archive.htm
Title: Haskell Archive
int-efantasma: in long, look at the thread starting here: http://www.haskell.org/pipermail/haskell-cafe/2007-February/022347.html
lambdabotTitle: [Haskell-cafe] Optimization fun, http://tinyurl.com/2xxrpz
Gwern(not to be too cliched, but it certainly seems true for my current program at least, the longer you work on them the shorter they get)
int-e@where haskell-cafe
lambdabothttp://www.haskell.org/mailman/listinfo/haskell-cafe
sorearhello.
tibbe@pl foldr (\(a,b) y -> if not a then (a,b) else y)
lambdabotfoldr (uncurry (ap ((.) . if' . not) (,)))
tibbeeh
actionLoganCapaldo decides to ask in #happs
LoganCapaldodecides to ask in #happs
actionLoganCapaldo notices that happs is a subset of #haskell
LoganCapaldonotices that happs is a subset of #haskell
fantasmamy processor is going to hate me after calculating a million primes with this crappy algorithm
actionfantasma will come back in an hour
fantasmawill come back in an hour
actionkc5tja would like to fine a complaint against himself. I've been meaning to continue to hack on my Haskell stuff, but have been entirely too busy doing other things. This is unacceptable and must be stopped. I'll have to get right on this issue, as soon as I'm done with my other projects.
kc5tjawould like to fine a complaint against himself. I've been meaning to continue to hack on my Haskell stuff, but have been entirely too busy doing other things. This is unacceptable and must be stopped. I'll have to get right on this issue, as soon as I'm done with my other projects.
tibbe_records are suprisingly poorly documented
notsmack@where hsxml
lambdabotI know nothing about hsxml.
largos@where haxml
lambdabothttp://haskell.org/HaXml
tibbe_I'm trying to "update" a record
dmhousetibbe_: let rec = oldrec { field = newval }
E.g.:
ddarius@oldwiki UsingRecords
lambdabothttp://www.haskell.org/hawiki/UsingRecords
dmhousedata Record = RConst { int :: Int, bool :: Bool }
r1 = RConst { int = 3, bool = False }
tibbe_dmhouse, thanks
dmhouser1 = r1 { bool = True }
Err, I meant r2 = r1 { bool = True }
nmessengerinfinite loop!
dmhouseThen r2 = RConst { int = 3, bool = True }.
nmessengerwhich also = RConsts 3 True
dmhouseYep.
nmessengers/s//
dmhouseYou can pattern match like this:
foo :: Record -> Bool
foo (RConst { bool = b }) = b
Which is the same as writing foo _ b = b, but clearer.

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 100 107 114 

IrcArchive

NY Lost Funds