lose the first character
by Colin Summers other posts by this author
Jun 14 2007 5:35PM messages near this date
Re: class destruction (evil genius metaprogramming)
|
Re: lose the first character
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).
Thanks.
(pickaxe is up in the other window, I see other ways, but I am curious
if people use one clear word, like chop!)
Thread:
Colin Summers
Trans
Sammy Larbi
Daniel DeLorme
Joel VanderWerf
John Joyce
Bertram Scharpf
John Joyce
Florian Assmann
|