[prev in list] [next in list] [prev in thread] [next in thread]
List: haskell
Subject: Re: [Haskell] (.) . (.)
From: Dominic Steinitz <dominic.steinitz () blueyonder ! co ! uk>
Date: 2006-05-29 6:28:29
Message-ID: 447A948D.5000705 () blueyonder ! co ! uk
[Download RAW message or body]
Taral wrote:
> On 5/28/06, Dominic Steinitz <dominic.steinitz@blueyonder.co.uk> wrote:
>> Is this defined in some library? Thanks, Dominic.
>
> Don't think so. I use:
>
> \a b -> f (g a b)
>
Taral,
Thanks. What prompted this question is that I find myself writing things
like:
foo = ((.).(.)) concat intersperse
I think
foo' = \a b -> concat (intersperse a b)
is probably clearer but I ended up writing
infixr $.
($.) = (.) . (.)
and then
foo' = concat $. intersperse
Of course one could go on and define
infixr $..
($..) = (.) . (.) . (.)
and so on.
I just wondered if there was a standard nomenclature for such functions
a la liftM, liftM2 etc?
The answer seems to be no.
Thanks, Dominic.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic