Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby clear set

require 'set'
s = Set[0, 1, 2]

s.clear()

puts s.to_a.to_s # [0, 1, 2]
 
PREVIOUS NEXT
Tagged: #ruby #clear #set
ADD COMMENT
Topic
Name
1+9 =