Kim-Ee Yeoh [EMAIL PROTECTED] writes:
Aaron Denney wrote:
I find the first far more readable. The compiler should be able to
assemble it all at compile time, right?
'Course not. The (++) function like all Haskell functions is only a
/promise/ to do its job.
I find this comment
On 2007-08-16, Kim-Ee Yeoh [EMAIL PROTECTED] wrote:
Aaron Denney wrote:
On 2007-08-15, Pekka Karjalainen [EMAIL PROTECTED] wrote:
A little style issue here on the side, if I may. You don't need to use
(++) to join multiline string literals.
text = If you want to have multiline string
Spotted this thread as I was working on a Haskell solution for this
one myself - here's the solution I came up with:
module Main where
import List
raw_matrix =
08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 ++
49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 ++
81
On 8/15/07, Mathias Biilmann Christensen [EMAIL PROTECTED] wrote:
Spotted this thread as I was working on a Haskell solution for this
one myself - here's the solution I came up with:
[ ... ]
raw_matrix =
08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 ++
49 49 99 40 17 81 18
On 2007-08-15, Pekka Karjalainen [EMAIL PROTECTED] wrote:
On 8/15/07, Mathias Biilmann Christensen [EMAIL PROTECTED] wrote:
Spotted this thread as I was working on a Haskell solution for this
one myself - here's the solution I came up with:
[ ... ]
raw_matrix =
08 02 22 97 38 15 00 40 00 75
Ronald Guida ronguida at mindspring.com writes:
I started looking at the Euler problems [1]. I had no trouble with
problems 1 through 10, but I'm stuck on problem 11. I am aware that
the solutions are available ([2]), but I would rather not look just
yet.
I am the author of that solution
Thank you for all the hints.
Here's how I ended up solving it:
module Main
where
import Data.List
import Data.Maybe
gridText = 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08\n\
\49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00\n\
\81 49 31 73 55 79 14 29 93