[Q] Why removeLast and removeFirst is implemented into OrderedCollection ?

Edgar J. De Cleene edgardec2001 at yahoo.com
Wed Jan 17 12:00:54 UTC 2007


El 1/17/07 8:50 AM, "Todd Blanchard" <tblanchard at mac.com> escribió:

> Collection lacks ordering as concept.
> SequenceableCollections are immutable.
> OrderedCollection is first one that is mutable and allows adding/
> removing elements.
> 
> -Todd Blanchard

Ok. I get. 
My mistake was what in real life any objects what you collect always have a
"first" and "last".

If I describe what objects are now on top my desk, always see some first, my
glasses , pen , etc,  but of course is subjective and could't be translated
to a computer.

Very thanks.

Edgar



	

	
		
__________________________________________________ 
Preguntá. Respondé. Descubrí. 
Todo lo que querías saber, y lo que ni imaginabas, 
está en Yahoo! Respuestas (Beta). 
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas 




More information about the Squeak-dev mailing list