Possible Duplicate:
Is there some kind of unseen Array termination in Ruby?
Array slicing in Ruby: looking for explanation for illogical behaviour (taken from Rubykoans.com)
a = %w[a b c]
a[3, 1] # => []
a[4, 1] # => nil
Could anyone explain why a[3, 1] returns []? Why not nil instead?
Thank you.