From: mame@... Date: 2018-12-20T14:53:07+00:00 Subject: [ruby-core:90645] [Ruby trunk Bug#15443][Rejected] Hash#slide with infinite range gives unexpective result Issue #15443 has been updated by mame (Yusuke Endoh). Status changed from Open to Rejected Not a bug but a spec of `Hash#slice`. Consider the case where the keys are a range: { (1..) => :a, (2..) => :b, (3..) => :c }.slice(2..) #=> {2..=>:b} Note that this behavior is not specific to endless range: { 1 => :a, 2 => :b, 3 => :c }.slice(2..3) #=> {} ---------------------------------------- Bug #15443: Hash#slide with infinite range gives unexpective result https://bugs.ruby-lang.org/issues/15443#change-75811 * Author: ana06 (Ana Maria Martinez Gomez) * Status: Rejected * Priority: Normal * Assignee: * Target version: * ruby -v: trunk 2.6 * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- `{ 1 => :a, 2 => :b, 3 => :c }.slice(2..)` returns `{}`. I had expected that it retuns `{2=>:b, 3=>:c}` instead. -- https://bugs.ruby-lang.org/ Unsubscribe: