Sent from my iPhone

> On Jul 30, 2015, at 1:34 PM, Tudor Girba <[email protected]> wrote:
> 
> Indeed, it's a new addition to Pharo (originally developed in Moose).

piecesCutWhere: is by Travis Griggs and comes from VisualWorks

> 
> Doru
> 
> 
>> On Thu, Jul 30, 2015 at 10:32 PM, H. Hirzel <[email protected]> wrote:
>> On 2/24/14, Eliot Miranda <[email protected]> wrote:
>> > On Mon, Feb 24, 2014 at 12:29 PM, Alexandre Bergel
>> > <[email protected]>wrote:
>> >
>> >> Would be great to have: 'ConfigurationOfRoassal' chopCamel  =>
>> >> #('Configuration' 'Of' 'Roassal').
>> >>
>> >
>> > 'ConfigurationOfRoassal'  piecesCutWhere: [:a :b| a isLowercase and: [b
>> > isUppercase]] an OrderedCollection('Configuration' 'Of' 'Roassal')
>> >
>> > It's too trivial, surely.
>> 
>> Nice piece of code. Not sure if it is too trivial.
>> 
>> I have never seen #piecesCutWhere before. It is not in Cuis and
>> Squeak. Must be a new Pharo method.
>> 
>> --Hannes
>> 
>> 
>> >
>> >
>> >>
>> >> Alexandre
>> >>
>> >>
>> >> On Feb 24, 2014, at 2:30 PM, Daniela Meneses <[email protected]>
>> >> wrote:
>> >>
>> >> > Hi to all,
>> >> >
>> >> > As you may know I'm working on in some improvements for the String
>> >> class. Until now I implemented some missing tests. Right now I'm looking
>> >> forward to add new methods that could be useful based on Ruby API (
>> >> http://www.ruby-doc.org/core-2.1.0/String.html). These are a few of the
>> >> methods that I'm planning to implement:
>> >> >
>> >> >       * chomp(separator=$/) -> new_str
>> >> >       * chop() -> new_str
>> >> >       * ljust(integer, padstr='') ->new_str
>> >> >       * next -> new_str
>> >> >       * partition(sep) -> [head, sep, tail]
>> >> >
>> >> > Could you help to find out if these methods are already available for
>> >> the String class?
>> >> >
>> >> > If you have any idea of new methods for the string class, will be
>> >> > really
>> >> welcome.
>> >> >
>> >> > --
>> >> > Cheers,
>> >> > Daniela Meneses
>> >>
>> >> --
>> >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> >> Alexandre Bergel  http://www.bergel.eu
>> >> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>> >>
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>> > --
>> > best,
>> > Eliot
>> >
> 
> 
> 
> -- 
> www.tudorgirba.com
> 
> "Every thing has its own flow"

Reply via email to