[Haskell-beginners] State as function?

Karl Voelker karl at karlv.net
Tue Apr 8 02:58:42 UTC 2014

On Mon, Apr 7, 2014, at 12:00 PM, Kim-Ee Yeoh wrote:

On Tue, Apr 8, 2014 at 1:43 AM, martin <[1]martin.drautzburg at web.de>

  BTW: I named the StringIndexes E6 | A | D | G | B | E1 which
  reflects the way a guitar is tuned. Way cool.

Nice :)

This n-tuple as Array trick is something I missed. Thanks, Karl. Do you
know where it's been used?

The last time I used this technique was when I needed to represent the
state of a mancala board. I may have seen it done somewhere else, but I
don't remember.



1. mailto:martin.drautzburg at web.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140407/6cebdbb7/attachment.html>

More information about the Beginners mailing list