require 'set' #if RUBY_VERSION < 2.6 s = Set[1,2]p s.class a = s.to_ap ap a.class
Standard input is empty
Set [1, 2] Array
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!