[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] _ ? 0



THANKS, merci!!!!


On 14.12.2007 22:42 Uhr, "James Harkins" <jamshark70@xxxxxxxxx> wrote:

> { |x| x ? 0 } or, { arg x; if(x.isNil) { 0 } { x } };
> 
> The other is { arg x; x * 2 }
> 
> hjh
> 
> On Dec 14, 2007 4:15 PM, PyoungRyang Ko <pyoungryang.ko@xxxxxxxxxxxxxx> wrote:
>> 
>>  Dear advanced users,
>> 
>>  How can be written the follwoing function without any abbreviation?
>> 
>>  _ ? 0
>> 
>>  _ * 2