| class CONTAINER_ALG{ETP,CTP<$CONTAINER{ETP}} |
|---|
| count_if(c:CTP, test:ROUT{ETP}:BOOL):INT |
|---|
| **** | The number of elements which satisfy `test'. |
| elt_if(c:CTP,test:ROUT{ETP}:BOOL,out res:ETP):BOOL |
|---|
| **** | Return true if the container has an element that satisfies the predicate 'test'. The out argument 'res' is set to the return value |
| every(c:CTP,test:ROUT{ETP}:BOOL):BOOL |
|---|
| **** | True if every element of self satisfies `test'. Self may be void. |
| notany(c:CTP,test:ROUT{ETP}:BOOL):BOOL |
|---|
| **** | True if none of the elements of self satisfies `test'. Self may be void. |
| notevery(c:CTP, test:ROUT{ETP}:BOOL):BOOL |
|---|
| **** | True if not every element of self satisfies `test'. Self may be void. |
| some(c:CTP, test:ROUT{ETP}:BOOL):BOOL |
|---|
| **** | True if some element of self satisfies `test'. Self may be void. |
| filter!(c:CTP, once f:ROUT{ETP}:BOOL): ETP |
|---|
| **** | Yield all elements that satisfy the boolean predicate "f" |
| filter_not!(c:CTP, once f:ROUT{ETP}:BOOL): ETP |
|---|
| **** | Yield all elements that do not satisfy the boolean predicate "f" |