Bug in nested iterations? (was: What is wrong with this?)

Frank Caggiano frankcag at crystal-objects.com
Thu May 26 02:34:07 UTC 2005


On May 25, 2005, at 21:19, Joaquin Sitte wrote:
>
> Define the class Som
>
> ArrayedCollection variableSubclass: #Som
> 	instanceVariableNames: 'width height'
> 	classVariableNames: ''
> 	poolDictionaries: ''
> 	category: 'NeuralNets'
>
> map_ Som new: 30
> map from: 1 to: map size put: (FloatArray new: 4).

Yoshiki really answered this but the method comment might make it a bit 
clearer.

from: startIndex to: endIndex put: anObject
	"Put anObject in all indexes between startIndex
	and endIndex. Very fast. Faster than to:do: for
	more than 26 positions. Answer anObject"

------------------------
Frank Caggiano
frankcag at crystal-objects dot com
http://www.crystal-objects.com

The best education for the best is the best education for all.
					Robert Maynard Hutchins




More information about the Squeak-dev mailing list