class Array # Returns an array from second element to last element. # # [1,2,3].tail #=> [2,3] # def tail slice(1,length-1) end end # _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # =begin test require 'test/unit' class TCArray < Test::Unit::TestCase def test_tail a = [1,2,3,4,5] assert_equal( [2,3,4,5], a.tail ) end end =end