Anonymous user
Set consolidation: Difference between revisions
→{{header|Ruby}}: change data(String->Symbol), correction of the control structure.
m (→{{header|jq}}: simplify) |
(→{{header|Ruby}}: change data(String->Symbol), correction of the control structure.) |
||
Line 1,448:
<lang ruby>require 'set'
tests = [[[
[[
[[
[[
tests.
end
p sets
end</lang>
{{out}}
<pre>
[#<Set: {
[#<Set: {
[#<Set: {
[#<Set: {
</pre>
Note: After execution, the contents of tests are exchanged.
=={{header|Scala}}==
<lang Scala>object SetConsolidation extends App {
|