(aCollection indexOf: anObject) = aCollection size


> Am 10.03.2015 um 14:47 schrieb Sanjay Minni <s...@planage.com>:
> 
> 
> sorry folks ...
> 
> so back to terra firma ...
> 
> 1. Is there any way to query an object to finds its index value in the
> original collection ... 
> say when all the objects from a collection are displayed and user clicks on
> one item - I want to locate the object back in the collection. Knowing the
> index for me would be most efficient.
> 
> 2. ... also Is there any way to know if I am on the last element ...
> 
> otherwise I will have to explicitly store the index values ... 
> 
> regards 
> Sanjay 
> 
> 
> 
> jtuchel wrote
>> Marcus
>> 
>> So sorry for this false accusation. It is proprietary in Squeak.
>> And even if it was Dan's idea to rename it, I'd like to learn more about
>> the
>> reasoning.
>> My understanding would be:
>> 
>> [...]
> 
> 
> 
> 
> 
> -----
> ---
> Regards, Sanjay
> --
> View this message in context: 
> http://forum.world.st/when-iterating-over-a-collection-how-to-determine-the-current-objects-index-tp4810920p4810984.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 
> 

Reply via email to