Collection.st
changeset 16022 9361dc566aec
parent 16007 fcc49f75d8de
child 16023 c23e78d0f2d1
equal deleted inserted replaced
16021:301a3939838f 16022:9361dc566aec
   780 
   780 
   781 nth:n
   781 nth:n
   782     "return the nth element of the collection.
   782     "return the nth element of the collection.
   783      For unordered collections, this simply returns the nth
   783      For unordered collections, this simply returns the nth
   784      element when enumerating them.
   784      element when enumerating them.
   785      This should be redefined in subclasses."
   785      This should be redefined in subclasses which can accecss fast by numeric index (aka Array-like things)."
   786 
   786 
   787     |count|
   787     |count|
   788 
   788 
   789     count := 1.
   789     count := 1.
   790     self do:[:e | 
   790     self do:[:e | 
  5372 ! !
  5372 ! !
  5373 
  5373 
  5374 !Collection class methodsFor:'documentation'!
  5374 !Collection class methodsFor:'documentation'!
  5375 
  5375 
  5376 version
  5376 version
  5377     ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.324 2014-02-12 14:40:03 cg Exp $'
  5377     ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.325 2014-02-13 10:52:36 cg Exp $'
  5378 !
  5378 !
  5379 
  5379 
  5380 version_CVS
  5380 version_CVS
  5381     ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.324 2014-02-12 14:40:03 cg Exp $'
  5381     ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.325 2014-02-13 10:52:36 cg Exp $'
  5382 ! !
  5382 ! !
  5383 
  5383 
  5384 
  5384 
  5385 Collection initialize!
  5385 Collection initialize!