[Haskell-cafe] Re: Currying confusion
Henning Thielemann
iakd0 at clusterf.urz.uni-halle.de
Fri Nov 12 15:07:24 EST 2004
On Fri, 12 Nov 2004, John Goerzen wrote:
> On 2004-11-12, Henning Thielemann <iakd0 at clusterf.urz.uni-halle.de> wrote:
> >
> > test3 :: Int -> (Int -> String) -> String
> >
> > ?
>
> Yes.
>
> > Then the implementation could be written as
> >
> > test3 x f = (show x ++) . f
>
> Tried that, but:
Sorry, it must be:
test3 :: Int -> (Int -> String) -> Int -> String
More information about the Haskell-Cafe
mailing list