Back: ArithmeticError-description Up: Base classes Forward: Array class-instance creation   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.3 Array

Defined in namespace Smalltalk
Superclass: ArrayedCollection
Category: Collections-Sequenceable
My instances are objects that have array-like properties: they are directly indexable by integers starting at 1, and they are fixed in size. I inherit object creation behavior messages such as #with:, as well as iteration and general access behavior from SequenceableCollection.

1.3.1 Array class: instance creation  (class)
1.3.2 Array: built ins  (instance)
1.3.3 Array: mutating objects  (instance)
1.3.4 Array: printing  (instance)
1.3.5 Array: testing  (instance)


1.3.1 Array class: instance creation

from: anArray
Answer anArray, which is expected to be an array specified with a brace-syntax expression per my inherited protocol.


1.3.2 Array: built ins

at: anIndex ifAbsent: aBlock
Answer the index-th indexed instance variable of the receiver

replaceFrom: start to: stop with: byteArray startingAt: replaceStart
Replace the characters from start to stop with new characters whose ASCII codes are contained in byteArray, starting at the replaceStart location of byteArray


1.3.3 Array: mutating objects

multiBecome: anArray
Transform every object in the receiver in each corresponding object in anArray. anArray and the receiver must have the same size


1.3.4 Array: printing

isLiteralObject
Answer whether the receiver is expressible as a Smalltalk literal.

printOn: aStream
Print a representation for the receiver on aStream

storeLiteralOn: aStream
Store a Smalltalk literal compiling to the receiver on aStream

storeOn: aStream
Store Smalltalk code compiling to the receiver on aStream


1.3.5 Array: testing

isArray
Answer `true'.



Back: Array-printing Up: Array Forward: ArrayedCollection   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on April, 16 2013 using texi2html