Dictionary.st
changeset 24408 5a0a248e33e6
parent 24350 5e7ccf17def9
child 24502 af543de49215
equal deleted inserted replaced
24407:37ddfbbe6d37 24408:5a0a248e33e6
   242     "
   242     "
   243 !
   243 !
   244 
   244 
   245 withKeysAndValues:aSequenceableCollection
   245 withKeysAndValues:aSequenceableCollection
   246     "return a new instance where keys and values are taken from alternating
   246     "return a new instance where keys and values are taken from alternating
   247      elements of anArray"
   247      elements of aSequenceableCollection"
   248 
   248 
   249     |newDict sz "{ Class: SmallInteger }"|
   249     |newDict sz "{ Class: SmallInteger }"|
   250 
   250 
   251     sz := aSequenceableCollection size.
   251     sz := aSequenceableCollection size.
   252     sz odd ifTrue:[
   252     sz odd ifTrue:[