[Haskell-beginners] making function problem (chapter 6 of Programming in Haskell)

Roelof Wobben rwobben at hotmail.com
Mon Aug 8 17:24:13 CEST 2011




----------------------------------------
> To: beginners at haskell.org
> From: es at ertes.de
> Date: Mon, 8 Aug 2011 17:17:18 +0200
> Subject: Re: [Haskell-beginners] making function problem (chapter 6 of Programming in Haskell)
>
> Roelof Wobben <rwobben at hotmail.com> wrote:
>
> > Maybe this :
> >
> > x ^ 0 = 1
> > x ^ y = x * (y-1)
>
> No, that's wrong. Don't try guessing things, because that will bring
> you nowhere with Haskell.
>
> But at least you are getting closer to the idea of solving things
> through algebraic rules.
>
>
> Greets,
> Ertugrul
>
>
> --
> nightmare = unsafePerformIO (getWrongWife >>= sex)
> http://ertes.de/
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners


Im not guessing. 

Im trying to understand what you mean by exponation rules.

 

As far as I can imagaging it cannot be done the same way as you described the sum problem.

 

Roelof

  		 	   		  


More information about the Beginners mailing list