[Aldor-l] remove: (T->Boolean, %) -> %
Ralf Hemmecke
ralf at hemmecke.de
Tue Nov 1 16:31:19 EST 2005
Hello,
I think that it would be worth to add the signatures
remove: (T -> Boolean, %) -> %;
remove!: (T -> Boolean, %) -> %;
removeAll: (T -> Boolean, %) -> %;
removeAll!: (T -> Boolean, %)
DynamicDataStructureType(T:Type):Category == ...
and implement the corresponding functions in
Queue, List, Set, SortedList, SortedSet.
The semantics is similar to the other remove functions, ie,
remove the first element for which the predicate holds and
removeAll elements for which the predicate holds.
Would there be anybody against if I add these functionalities and commit
them?
Ralf
More information about the Aldor-l
mailing list