ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:98966] [Ruby master Feature#16991] Sets: add Set#join
@ 2020-06-26 20:29 marcandre-ruby-core
  2023-01-01 13:05 ` [ruby-core:111563] " zverok (Victor Shepelev) via ruby-core
  0 siblings, 1 reply; 2+ messages in thread
From: marcandre-ruby-core @ 2020-06-26 20:29 UTC (permalink / raw
  To: ruby-core

Issue #16991 has been reported by marcandre (Marc-Andre Lafortune).

----------------------------------------
Feature #16991: Sets: add Set#join
https://bugs.ruby-lang.org/issues/16991

* Author: marcandre (Marc-Andre Lafortune)
* Status: Open
* 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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ruby-core:111563] [Ruby master Feature#16991] Sets: add Set#join
  2020-06-26 20:29 [ruby-core:98966] [Ruby master Feature#16991] Sets: add Set#join marcandre-ruby-core
@ 2023-01-01 13:05 ` zverok (Victor Shepelev) via ruby-core
  0 siblings, 0 replies; 2+ messages in thread
From: zverok (Victor Shepelev) via ruby-core @ 2023-01-01 13:05 UTC (permalink / raw
  To: ruby-core; +Cc: zverok (Victor Shepelev)

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-01 13:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-26 20:29 [ruby-core:98966] [Ruby master Feature#16991] Sets: add Set#join marcandre-ruby-core
2023-01-01 13:05 ` [ruby-core:111563] " zverok (Victor Shepelev) via ruby-core

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).