
23 Apr
2004
23 Apr
'04
5:26 a.m.
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