Login  Register

Why is split: implemented in the separator rather than the string?

Posted by Andy Burnett on May 20, 2016; 3:58pm
URL: https://forum.world.st/Why-is-split-implemented-in-the-separator-rather-than-the-string-tp4896411.html



Message: 1
Date: Thu, 19 May 2016 20:18:09 -0700
From: John Pfersich <[hidden email]>
To: Any question about pharo is welcome <[hidden email]>
Subject: Re: [Pharo-users] Why is split: implemented in the separator
        rather  than the string?
Message-ID: <[hidden email]>
Content-Type: text/plain;       charset=us-ascii

If you want to do it reversed, do it like this:

'1969-07-20' splitOn: '-'


Thanks to both of you for responding. Makes sense.

Cheers
Andy