[ENH] SequenceableCollection>>copyAt:put:

Andres Valloud avalloud at entrypoint.com
Tue Apr 11 19:36:56 UTC 2000


Hi.

Here's a method that didn't get included in the previous changeset
properly.

Andres.
-------------- next part --------------
'From Squeak2.6 of 11 October 1999 [latest update: #1578] on 11 April 2000 at 12:35:44 pm'!

!SequenceableCollection methodsFor: 'copying' stamp: 'SqR!!!! 4/11/2000 12:26'!
copyAt: anIndex put: anElement
	"Answer a copy of the receiver with anElement inserted at anIndex."

	"^self copyReplaceFrom: anIndex to: anIndex with: (Array with: anElement)"
	^(self copyFrom: 1 to: self size) at: anIndex put: anElement; yourself
! !


More information about the Squeak-dev mailing list