[Haskell-cafe] nested function application question
Galchin, Vasili
vigalchin at gmail.com
Mon Jan 5 13:59:29 EST 2009
Thank you everybody!
Vasili
On Mon, Jan 5, 2009 at 12:57 PM, David Menendez <dave at zednenem.com> wrote:
> 2009/1/5 Ross Mellgren <rmm-haskell at z.odi.ac>:
> > If for some reason you absolutely need to avoid parentheses (mostly as a
> > thought exercise, I guess), you'd have to have a flipped version of
> > intercalate:
>
> Or a version of ($) that associates differently.
>
> infixl 0 $$
>
> f $$ x = f x
>
> *Main Data.ByteString> :t \x y z -> intercalate $$ intercalate x y $$ z
> \x y z -> intercalate $$ intercalate x y $$ z :: ByteString
> -> [ByteString]
> -> [ByteString]
> -> ByteString
>
>
> --
> Dave Menendez <dave at zednenem.com>
> <http://www.eyrie.org/~zednenem/ <http://www.eyrie.org/%7Ezednenem/>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090105/79a25913/attachment.htm
More information about the Haskell-Cafe
mailing list