Am 12.02.2014 um 12:25 schrieb Sven Van Caekenberghe <[email protected]>:

> 
> On 12 Feb 2014, at 13:02, Norbert Hartl <[email protected]> wrote:
> 
>> 
>> Am 12.02.2014 um 11:44 schrieb Sven Van Caekenberghe <[email protected]>:
>> 
>>> #( 11 7 4 21 ) detectIndex: #even
>>> 
>> I knew it makes sense to ask. Only slightly embarrasing :)
> 
> These little challenges are always quite fun.
> 
Yep, because the closest I could create was using withIndexDo: and looking at 
#detectIndex:ifNone: confirms that.

thanks,

Norbert
 
> Sven
> 
>> Norbert
>> 
>>> ;-)
>>> 
>>> On 12 Feb 2014, at 12:37, Norbert Hartl <[email protected]> wrote:
>>> 
>>>> I just discovered that there is no method like
>>>> 
>>>> indexOf: aBlock
>>>> 
>>>> where the index of the element matching the block is returned. What would 
>>>> be the usual way to achieve this functionality?
>>>> 
>>>> Norbert
>>>> 
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 


Reply via email to