# Naive implementation of collections method
# You only have to define iterator!
interface NaiveCollection[E]
# Naive implementation of collections method
# You only have to define iterator!
interface NaiveCollection[E]
# map.has_key(u1) # -> true
# map.has_key(u3) # -> false
interface Map[K: Object, E]
# map.has_key(u1) # -> true
# map.has_key(u3) # -> false
interface Map[K: Object, E]
# Set the`item' at `key'.
fun []=(key: K, item: E) is abstract
# Set the`item' at `key'.
fun []=(key: K, item: E) is abstract
# Indexed collection are ordoned collections.
# The first item is 0. The last is `length'-1.
interface SequenceRead[E]
# Indexed collection are ordoned collections.
# The first item is 0. The last is `length'-1.
interface SequenceRead[E]
# Associatives arrays that internally uses couples to represent each (key, value) pairs.
interface CoupleMap[K: Object, E]
# Associatives arrays that internally uses couples to represent each (key, value) pairs.
interface CoupleMap[K: Object, E]
# Return the couple of the corresponding key
# Return null if the key is no associated element
protected fun couple_at(key: K): nullable Couple[K, E] is abstract
# Return the couple of the corresponding key
# Return null if the key is no associated element
protected fun couple_at(key: K): nullable Couple[K, E] is abstract
#
# Actually is is a wrapper around an iterator of the internal array of the map.
class CoupleMapIterator[K: Object, E]
#
# Actually is is a wrapper around an iterator of the internal array of the map.
class CoupleMapIterator[K: Object, E]