I have a class called MAP :
class MAP [KEY,VAL]
inherit ITERABLE [KEY]
I implemented the new cursor inside the map cursor which returns and
MAP_ITERATOR_CURSOR [KEY]
and passes that iterable cursor an array of KEYS to iterate through
I implemented the MAP_ITERATOR_CURSOR [KEY]
class
class MAP_ITERATOR_CURSOR [KEY]
inherit ITERATION_CURSOR [KEY]
for this class I implemented the feature item: VAL
but because the class was defined with KEY
it won't recognize VAL
how do I get MAP_ITERATOR_CURSOR [KEY]
item feature to return the VAL
associated with the key that we are on at the moment ?
Knowing that MAP
has a function called item which take key and returns VAL
associated with that key
item (k: KEY): VAL