Dictionary.st
changeset 21116 3d401b0a90bd
parent 20989 42266e2b5d40
child 21242 19fabe339f8b
child 21268 a7000a97f464
equal deleted inserted replaced
21115:c745f080ded2 21116:3d401b0a90bd
     1 "{ Encoding: utf8 }"
       
     2 
       
     3 "
     1 "
     4  COPYRIGHT (c) 1991 by Claus Gittinger
     2  COPYRIGHT (c) 1991 by Claus Gittinger
     5 	      All Rights Reserved
     3 	      All Rights Reserved
     6 
     4 
     7  This software is furnished under a license and may be used
     5  This software is furnished under a license and may be used
   990 removeAllKeys:aKeyCollection
   988 removeAllKeys:aKeyCollection
   991     "remove all associations under each key in aKeyCollection from the collection.
   989     "remove all associations under each key in aKeyCollection from the collection.
   992      If it was not in the collection report an error.
   990      If it was not in the collection report an error.
   993 
   991 
   994      WARNING: do not remove elements while iterating over the receiver.
   992      WARNING: do not remove elements while iterating over the receiver.
   995 	      See #saveRemoveKey: to do this."
   993               See #safeRemoveKey: to do this."
   996 
   994 
   997     aKeyCollection do:[:eachKey |
   995     aKeyCollection do:[:eachKey |
   998 	self removeKey:eachKey ifAbsent:[self errorKeyNotFound:eachKey]
   996         self removeKey:eachKey ifAbsent:[self errorKeyNotFound:eachKey]
   999     ].
   997     ].
  1000 !
   998 !
  1001 
   999 
  1002 removeAllKeys:aKeyCollection ifAbsent:aBlock
  1000 removeAllKeys:aKeyCollection ifAbsent:aBlock
  1003     "remove all associations under each key in aKeyCollection from the collection.
  1001     "remove all associations under each key in aKeyCollection from the collection.