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

Fernan Bolando fernanbolando at mailc.net
Fri Jan 19 02:48:00 EST 2007


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++){
		printf("%i:%i = %f\n", array[i][n]);
	}
}


,Fernan

-- 
Public PGP/GnuPG key (http://www.fernski.com)
pub 1024D/3576CA71 2006-02-02 Fernan Bolando
Key fingerprint = FDFE C9A8 FFED C1A5 2F5C EFEB D595 AF1C 3576 CA71


More information about the Haskell-Cafe mailing list