Re: [Haskell-cafe] for loops and 2d arrays in haskell

2007-01-19 Thread Yitzchak Gale
Hi Fernan, You wrote: > what is the simplest way to implement the following code in haskell? > it's just printing the contents of 2D array. > > for(i = 0; i < imax; i++){ > for(n = 0; n < nmax; n++){ > printf("%i:%i = %f\n", array[i][n]); > } > } There are many different ways o

Re: [Haskell-cafe] for loops and 2d arrays in haskell

2007-01-19 Thread Ketil Malde
Fernan Bolando wrote: what is the simplest way to implement the following code in haskell? it's just printing the contents of 2D array. for(i = 0; i < imax; i++){ for(n = 0; n < nmax; n++){ printf("%i:%i = %f\n", array[i][n]); } } *%* ghci ___ ___ _ * / _ \ /\ /\/ __(

Re: [Haskell-cafe] for loops and 2d arrays in haskell

2007-01-18 Thread Sebastian Sylvan
On 1/19/07, Sebastian Sylvan <[EMAIL PROTECTED]> wrote: On 1/19/07, Sebastian Sylvan <[EMAIL PROTECTED]> wrote: > On 1/19/07, Fernan Bolando <[EMAIL PROTECTED]> wrote: > > hi all > > > > Since I am very new to haskell and still learning, I hope I will not > > annoy poeple by asking the following

Re: [Haskell-cafe] for loops and 2d arrays in haskell

2007-01-18 Thread Sebastian Sylvan
On 1/19/07, Sebastian Sylvan <[EMAIL PROTECTED]> wrote: On 1/19/07, Fernan Bolando <[EMAIL PROTECTED]> wrote: > hi all > > Since I am very new to haskell and still learning, I hope I will not > annoy poeple by asking the following question. > > what is the simplest way to implement the following

Re: [Haskell-cafe] for loops and 2d arrays in haskell

2007-01-18 Thread Sebastian Sylvan
On 1/19/07, Fernan Bolando <[EMAIL PROTECTED]> wrote: hi all Since I am very new to haskell and still learning, I hope I will not annoy poeple by asking the following question. what is the simplest way to implement the following code in haskell? it's just printing the contents of 2D array. for

[Haskell-cafe] for loops and 2d arrays in haskell

2007-01-18 Thread Fernan Bolando
hi all Since I am very new to haskell and still learning, I hope I will not annoy poeple by asking the following question. what is the simplest way to implement the following code in haskell? it's just printing the contents of 2D array. for(i = 0; i < imax; i++){ for(n = 0; n < nmax; n+