rampion

Washington, DC

del.icio.us/rampion

Age: 34

Mathematician, programmer, and researcher; with interests in algorithmic design, software engineering theory, and massively parallel computing. I'm also a keyboard junkie and an aspiring language nerd.

2d
revised How do I add the contents of a string?
added 14 characters in body
2d
revised How do I add the contents of a string?
added 25 characters in body
2d
answered How do I add the contents of a string?
Dec
12
comment Haskell Matching pattern for lists
note that : is a constructor, not a function. You can "unapply" constructors by pattern matching on them, but you can't unapply functions in the same way.
Dec
12
answered RegEx for fixed number of digits?
Dec
11
answered Applying multiplication across lists in haskell list comprehension
Dec
8
answered Is there any way to describe function parameters first in Haddock?
Dec
8
comment Functional Parser example in Haskell using GHCi
tony.0919: I've fleshed out my description of how >>= is implemented. Let me know if you have any questions about it.
Dec
8
revised Functional Parser example in Haskell using GHCi
added 1153 characters in body
Dec
8
comment Functional Parser example in Haskell using GHCi
Tony Ngan: what I and user5402 were asking for was a definition of the Parser datatype, not the definition of item. I think I was able to infer it from your use of the P constructor, but tell me if I'm wrong.
Dec
8
revised Functional Parser example in Haskell using GHCi
added 521 characters in body
Dec
7
answered How to wrap exceptions to provide context?
Dec
7
comment Using modules that are "unsafe" in Haskell
that's odd. what's your error message?
Dec
7
revised Functional Parser example in Haskell using GHCi
added 72 characters in body
Dec
7
answered Functional Parser example in Haskell using GHCi
Dec
6
comment Why doesn't the List fuse as well as the Vector? (Haskell)
fyi - Double has an Enum instance, so the map is unnecessary - (\n -> enumFromTo 0 $ fromIntegral n) :: Int -> [Double]
Dec
5
answered Most efficent way to move a directory in haskell
Dec
5
revised Ways to pack (adjacent) elements of a list into 2-tuples
deleted 14 characters in body
Dec
5
comment Ways to pack (adjacent) elements of a list into 2-tuples
Dato: To see when the lazy match is necessary, try take 10 (pack [1...]) with and without the ~. The lazy match lets you pattern match on the result of an (possibly infinite) computation without waiting for that computation to complete, as you are normally forced to do when matching.
Dec
5
revised Ways to pack (adjacent) elements of a list into 2-tuples
added 257 characters in body
1 2 3 4 5