summaryrefslogtreecommitdiff
path: root/NEWS.md
diff options
context:
space:
mode:
Diffstat (limited to 'NEWS.md')
-rw-r--r--NEWS.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/NEWS.md b/NEWS.md
index d88642b71c..447788b932 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -149,6 +149,14 @@ Outstanding ones only.
* Array#uniq
* Array#*
+ * Can be sliced with Enumerator::ArithmeticSequence
+
+ ```ruby
+ dirty_data = ['--', 'data1', '--', 'data2', '--', 'data3']
+ dirty_data[(1..).step(2)] # take each second element
+ # => ["data1", "data2", "data3"]
+ ```
+
* ConditionVariable
* ConditionVariable#wait may now invoke the `block`/`unblock` scheduler