You cannot help but bring gems from one language to another.
// return rv (replacement value) for v (value) when v is nil
+(id *)nvl:(id *)v :(id *)rv {
return (v==nil)?rv:v;
}
You cannot help but bring gems from one language to another.
// return rv (replacement value) for v (value) when v is nil
+(id *)nvl:(id *)v :(id *)rv {
return (v==nil)?rv:v;
}