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

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.806 / Virus Database: 548 - Release Date: 05/12/2004
 


-- 
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.

Reply via email to