[#100689] [Ruby master Feature#17303] Make webrick to bundled gems or remove from stdlib — hsbt@...
Issue #17303 has been reported by hsbt (Hiroshi SHIBATA).
11 messages
2020/11/02
[#100852] [Ruby master Feature#17326] Add Kernel#must! to the standard library — zimmerman.jake@...
Issue #17326 has been reported by jez (Jake Zimmerman).
24 messages
2020/11/14
[#100930] [Ruby master Feature#17333] Enumerable#many? — masafumi.o1988@...
Issue #17333 has been reported by okuramasafumi (Masafumi OKURA).
10 messages
2020/11/18
[#101071] [Ruby master Feature#17342] Hash#fetch_set — hunter_spawn@...
Issue #17342 has been reported by MaxLap (Maxime Lapointe).
26 messages
2020/11/25
[ruby-core:101129] [Ruby master Feature#17347] Enumerator::Chain of Enumerator::Lazy should be lazy
From:
chowlett09@...
Date:
2020-11-27 13:38:09 UTC
List:
ruby-core #101129
Issue #17347 has been updated by asilano (Chris Howlett). Is it a duplicate? I can see it's similar, but I'm not entirely sure fixing #17216 will fix this. Willing to be wrong, though. ---------------------------------------- Feature #17347: Enumerator::Chain of Enumerator::Lazy should be lazy https://bugs.ruby-lang.org/issues/17347#change-88810 * Author: asilano (Chris Howlett) * Status: Open * Priority: Normal ---------------------------------------- ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-linux] Consider the following script: ``` ruby a = [1,2,3].lazy p a b = [4,5,6].lazy p b c = a + b p c ``` This gives the output: ``` #<Enumerator::Lazy: [1, 2, 3]> #<Enumerator::Lazy: [4, 5, 6]> #<Enumerator::Chain: [#<Enumerator::Lazy: [1, 2, 3]>, #<Enumerator::Lazy: [4, 5, 6]>]> ``` Note that `c` is just `Enumerator::Chain`; but all its component enumerators are lazy, so it would be nice if `c` were lazy. That is, I'd like the output to be: ``` #<Enumerator::Lazy: [1, 2, 3]> #<Enumerator::Lazy: [4, 5, 6]> #<Enumerator::Lazy: #<Enumerator::Chain: [#<Enumerator::Lazy: [1, 2, 3]>, #<Enumerator::Lazy: [4, 5, 6]>]>> ``` -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>