bit more on booting of the space

This commit is contained in:
Torsten Ruger
2015-05-24 19:59:19 +03:00
parent 2ccbea04b9
commit 5670f07eac
6 changed files with 29 additions and 17 deletions

View File

@ -44,6 +44,11 @@ module Parfait
self.set( self.get_length + 1 , value)
end
def first
return nil unless empty?
get(1)
end
# set the value at index.
# Lists start from index 1
def set( index , value)