[REBOL] Best way to remove the last character from a string?
From: pwawood:mango:my at: 14-Dec-2004 20:24
I've worked out two ways to chop-off the last character of a string. Method One>> mystring: "123456"== "123456">> mystring: head remove back tail mystring== "12345" Method Two>> mystring: "123456"== "123456">> mystring: copy/part mystring ((length? mystring) - 1)== "12345" Can anyone suggest a less verbose, clearer and quicker way for me? Thanks Peter