15 ms·
This isn't true; Ruby has no set literal. Sets are provided by a default gem but there is no built-in syntax for them.
by nauticacom 5y ago
This isn't true; Ruby has no set literal. Sets are provided by a default gem but there is no built-in syntax for them.
- alex_smart 5y agoSorry I found this page on Google but did not read the note on top. Looks like it was a proposed feature but was not implemented. https://dev.to/baweaver/ruby-3-set-literal-3fp9 https://dev.to/baweaver/ruby-3-set-literal-3fp9