Michael Glaesemann wrote:

> 
> As I read it, OP is asking specifically about the behavior of
> nil.to_(s|i|a). I may be missing something, but where does this code
> involve nil? k is in 4..0, but not nil.

p proc{|k| 's' if k != 1}.call(1) #nil

cheers

Simon