[#111712] [Ruby master Feature#19322] Support spawning "private" child processes — "kjtsanaktsidis (KJ Tsanaktsidis) via ruby-core" <ruby-core@...>
SXNzdWUgIzE5MzIyIGhhcyBiZWVuIHJlcG9ydGVkIGJ5IGtqdHNhbmFrdHNpZGlzIChLSiBUc2Fu
14 messages
2023/01/07
[ruby-core:111563] [Ruby master Feature#16991] Sets: add Set#join
From:
"zverok (Victor Shepelev) via ruby-core" <ruby-core@...>
Date:
2023-01-01 13:05:30 UTC
List:
ruby-core #111563
Issue #16991 has been updated by zverok (Victor Shepelev).
Status changed from Open to Closed
Implemented in Ruby 3.0
----------------------------------------
Feature #16991: Sets: add Set#join
https://bugs.ruby-lang.org/issues/16991#change-100928
* Author: marcandre (Marc-Andre Lafortune)
* Status: Closed
* Priority: Normal
----------------------------------------
I'd like to add `#join` to `Set`:
```ruby
# Now:
Set[1, 2, 3].join('x') # => NoMethodError
# After
Set[1, 2, 3].join('x') # => "1x2x3"
```
I'd make this join never recursive. (I've never wanted to use the recursivity of `Array#join`, but it may very well just be my particular experience)
Reminder: Why there is no `Enumerable#join`: https://bugs.ruby-lang.org/issues/1893
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/