On Fri, Apr 23, 2004 at 10:11:40AM +0100, Malcolm Wallace wrote:
> If the pattern is very common, how about just naming it?
>
> perhaps cond f field = if cond then f field else field
>
> foo { bar = perhaps cond0 f (bar foo)
> , wib = perhaps cond1 g (wib foo) }
Good idea, but I think that name like 'applyIf' or 'condApply' would be
better.
Best regards,
Tom
--
.signature: Too many levels of symbolic links
_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe