[ruby-core:90646] [Ruby trunk Bug#15443] Hash#slide with infinite range gives unexpective result

From: anamma06@...
Date: 2018-12-20 15:01:10 UTC
List: ruby-core #90646
Issue #15443 has been updated by ana06 (Ana Maria Martinez Gomez).


It sound reasonable ;) this can be closed then

----------------------------------------
Bug #15443: Hash#slide with infinite range gives unexpective result
https://bugs.ruby-lang.org/issues/15443#change-75812

* 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: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next