Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (17 sloc) 551 Bytes
ten_things = "Apples Oranges Crows Telephone Light Sugar"
puts "Wait, here's not 10 things in that list, let's fix that."
stuff = ten_things.split ' '
more_stuff = %w(Day Night Song Frisbee Corn Banana Girl Boy)
until stuff.length == 10
next_one = more_stuff.pop
puts "Adding: #{next_one}"
puts "There's #{stuff.length} items now."
puts "There we go: #{stuff}"
puts "Let's do some things with stuff."
puts stuff[1]
puts stuff[-1]
puts stuff.pop
puts stuff.join ' '
puts stuff.values_at(3,5).join('#')