nobu (Nobuyoshi Nakada) wrote in #note-5: > This kind of extensions should be done in the corresponding library side, set.rb. Thanks for pointing that out. Here's the PR https://github.com/ruby/set/pull/40 Dan0042 (Daniel DeLorm...greggzst (Grzegorz Jakubiak)
* [Feature #16989] Sets: need ♥️ * matz has already accepted adding Sets as default. However, there hasn’t been any updates on the progressgreggzst (Grzegorz Jakubiak)
I noticed documentation at https://docs.ruby-lang.org/en/3.0.0/String.html#method-i-prepend says: ``` Returns a new String containing the concatenation of all given other_strings and self: ``` but `String#prepend` modifies string i...greggzst (Grzegorz Jakubiak)
sawa (Tsuyoshi Sawada) wrote in #note-7: > I think the current behaviour is natural. You cannot play around with `with_index` since its receiver is `Enumerator`, not `Matrix`, and the information as a matrix is already gone. > ... I ge...greggzst (Grzegorz Jakubiak)
greggzst (Grzegorz Jakubiak) wrote in #note-2: > I also noticed when combining `each_with_index` with `inject` it passes `element, row_index and col_index` as one argument to the block > ... My bad I just figured out that's a case for ...greggzst (Grzegorz Jakubiak)
* [Feature #17277] Make Enumerator#with_index yield row and col indices for Matrix * Access Matrix indices in enumerable methodsgreggzst (Grzegorz Jakubiak)
~~I also noticed when combining `each_with_index` with `inject` it passes `element, row_index and col_index` as one argument to the block~~ ```ruby Matrix[[1,2,4,5],[7,8,9,2]].each_with_index.inject({}) { |acc, e, row, col| puts "#{acc}...greggzst (Grzegorz Jakubiak)