[Haskell-beginners] Choosing a function by (string) name...

Stuart Hungerford stuart.hungerford at gmail.com
Sun May 20 10:54:46 CEST 2012


On Sun, May 20, 2012 at 5:51 PM, Magnus Therning <magnus at therning.org> wrote:

> [...]
> Since the two functions have the same type there is no problem to do
> this, and in fact you have already hinted at a reasonable solution
> yourself: create an assoctiation list and use lookup
> (http://is.gd/wZPlNJ).

Thanks Magnus, that's a clear and simple approach.

Stu



More information about the Beginners mailing list