From fd4b5b8dc83e61bbbb62fa7e6194c0ece6b9349f Mon Sep 17 00:00:00 2001 From: knu Date: Mon, 2 Sep 2013 14:56:06 +0000 Subject: Enhance Numeric#step. * numeric.c (num_step): Default the limit argument to infinity and allow it to be omitted. Keyword arguments (by: and to:) are introduced for ease of use. [Feature #8838] [ruby-dev:47662] [ruby-dev:42194] * numeric.c (num_step): Optimize for infinite loop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- NEWS | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 5d142f1a7f..ec2a706f57 100644 --- a/NEWS +++ b/NEWS @@ -72,6 +72,12 @@ with all sufficient information, see the ChangeLog file. * misc * Mutex#owned? is no longer experimental. +* Numeric + * extended methods: + * Numeric#step allows the limit argument to be omitted, in which + case an infinite sequence of numbers is generated. Keyword + arguments `to` and `by` are introduced for ease of use. + * Process * New methods: * alternative methods to $0/$0=: -- cgit v1.2.3