[Haskell-beginners] Guards problem

Dan Serban dserban01 at gmail.com
Thu Apr 10 11:23:00 UTC 2014

Side note: it's not very clear what you're trying to accomplish, but
you may be better served by using array semantics. I sketched a quick
and dirty code snippet in a hurry, feel free to clean it up and make
it well-typed:

After loading it in GHCi, you can do:
λ: getCellAt (1,1)
λ: getCellAt (-1,1)

More information about the Beginners mailing list