usman 

we would love to get some of the nice collection extensions made in Moose.
Now somebody has to push it to us.
open a ticket and submit code and you will get it.
Stef

On Nov 22, 2012, at 4:37 PM, Usman Bhatti wrote:

> Hello all,
> 
> I remarked that the package CollectionExtensions is missing in Pharo 2.0. We 
> are using a useful method provided by the package on strings that provides 
> character intervals for line numbers in a string. Here is the code from 1.4:
> 
> intervalOfLine: aLineNumber
> 
>       "Answer an interval spanning between the first and the last character 
> of the line from aLineNumber"
>       
>       | lineIndex |
>       lineIndex := 0.
>       self lineIndicesDo: [ :start :endWithoutDelimiters :end |
>               lineIndex := lineIndex + 1.
>               lineIndex = aLineNumber ifTrue: [ ^ start to: end ] ].
>       ^ 0 to: 0
> 
> Now, this method is missing in Pharo 2.0. Is there a particular reason for 
> omitting the package? Is there a replacement for the pckage?
> 
> tx,
> Usman


Reply via email to