abstract class $CONTAINER{ETP} < $ELT{ETP},$STR |
---|
**** | The basic abstract container type Does not have a create:SAME method, since this does not make sense for arrays and other indexible types, where the create should take SAME as an argument Inherits: elt!, str |
$STR | $ELT{_} | $ELT |
copy: SAME; |
---|
**** | Return a copy of the current container |
elt!:ETP; |
---|
**** | Yield all the elements of self. The order is not defined. From $ELT{ETP} |
has(e: ETP): BOOL; |
---|
**** | pre ~void(self) True if the container contains the element "e" |
is_empty:BOOL; |
---|
**** | Returns true if the size of the container = 0 |
size: INT; |
---|
**** | Number of elements contained |
str:STR; |
---|
**** | Yield a string version of self From STR |