2009/1/5 Ross Mellgren <[email protected]>:
> 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 <[email protected]>
<http://www.eyrie.org/~zednenem/>
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe