Re: [q-lang-users] RFC: Conditional syntax
Brought to you by:
agraef
From: Patrick A. <rp...@al...> - 2006-06-01 04:31:50
|
On Thu, Jun 01, 2006 at 12:59:19AM +0200, Albert Graef wrote: > Albert Graef wrote: > >(Ex. 3) > > > >abs X = cond (X<0, -X; true, X); > > Arrgh, I just noticed that cond is already used in clib for pthread > conditions. Too bad. :( Can anyone think of another nice name for the > conditional operation? > Perhaps? abs X = choose (X<0, -X; true, X); Patrick. -- |