ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
Re: lose the first character
by Trans other posts by this author
Jun 15 2007 7:48AM messages near this date
lose the first character | Re: lose the first character
On Jun 14, 8:35 pm, "Colin Summers" <blade...@[...].com>  wrote:
>          r = r.reverse.chop.reverse  # remove the first character
> 
>  That works, but I bet there's a nicer method. What do people use? I
>  thought there would be a pohc method (chop, in reverse).

Actually, I've been wanting a front version #chomp for a long time
too. If I has good names I'd add them to facets.

T.
Thread:
Colin Summers
Trans
Sammy Larbi
Daniel DeLorme
Joel VanderWerf
John Joyce
Bertram Scharpf
John Joyce
Florian Assmann

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved