Set.st
changeset 21350 a71d9cb8ee31
parent 21348 6040a106c11f
child 21384 d0a0cd26d471
equal deleted inserted replaced
21349:ca1b1f8d848e 21350:a71d9cb8ee31
   426 
   426 
   427     "Modified: / 16.11.2001 / 10:14:24 / cg"
   427     "Modified: / 16.11.2001 / 10:14:24 / cg"
   428 !
   428 !
   429 
   429 
   430 removeAll
   430 removeAll
   431     "remove all elements from the receiver. Returns the receiver."
   431     "remove all elements from the receiver and resize (shrink) the underlying container. 
       
   432      Returns the receiver.
       
   433      Similar to clearContents, which but might behave better, 
       
   434      if the receiver is to be filled again afterwards."
   432 
   435 
   433     self initializeForCapacity:7.
   436     self initializeForCapacity:7.
   434 
   437 
   435     "Modified: 12.4.1996 / 13:35:06 / cg"
   438     "Modified: / 12-04-1996 / 13:35:06 / cg"
       
   439     "Modified (comment): / 06-02-2017 / 12:56:14 / cg"
   436 !
   440 !
   437 
   441 
   438 removeIdentical:oldObjectArg ifAbsent:exceptionBlock
   442 removeIdentical:oldObjectArg ifAbsent:exceptionBlock
   439     "remove oldObject from the collection and return it.
   443     "remove oldObject from the collection and return it.
   440      If it was not in the collection return the value of exceptionBlock.
   444      If it was not in the collection return the value of exceptionBlock.