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


Ancestors
$STR $ELT{_} $ELT

Descendants
$RO_ARR{_} $ARR{_} FLIST{_} FSTR
ARRAY{_} $RO_BAG{_} $RO_MULTIMAP{_,_} $RO_MAP{_,_}
$MAP{_,_} MAP{_,_} $VMAP{_,_} VMAP{_,_}
$VMULTIMAP{_,_} VMULTIMAP{_,_} $RO_SET{_} $VSET{_}
VSET{_} $BAG{_} BAG{_} $VBAG{_}
VBAG{_}



Public


Features
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

The Sather Home Page