André Thieme wrote:
> William James schrieb:
>
> > def nif num, pos, zero, neg
> >   send( num>0 ? pos : (num==0 ? zero : neg) )
> > end
>
> btw, your nif body is built out of 13 tokens, so more
> complicated than the Python version.
>
> 
> André
> --

def nif num, *args
  send args[ 1 + (0 <=> num) ]
end

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to