add next_value for dictionary

also next for list
and add types attributes to space
This commit is contained in:
Torsten Ruger
2018-05-13 13:03:04 +03:00
parent 2d901bf7b6
commit 7ad36380c2
6 changed files with 53 additions and 2 deletions

View File

@ -30,6 +30,10 @@ module Parfait
return @keys.get_length()
end
def next_value(val)
return @values.next_value(val)
end
# get a value fot the given key
# key identity is checked with == not === (ie equals not identity)
# return nil if no such key