Project

General

Profile

Actions

Bug #15443

closed

Hash#slide with infinite range gives unexpective result

Added by ana06 (Ana Maria Martinez Gomez) over 5 years ago. Updated over 5 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
trunk 2.6
[ruby-core:90643]

Description

{ 1 => :a, 2 => :b, 3 => :c }.slice(2..) returns {}. I had expected that it retuns {2=>:b, 3=>:c} instead.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0