These compete with Method 2: >> copy/part mystring ((length? mystring) - 1) == "12345" >> copy/part mystring skip tail mystring -1 == "12345" >> copy/part mystring at tail mystring -1 == "12345"
to save you five characters. :) I admit this always makes me think there must be a better way, apart from making your own function. Anton. > I've worked out two ways to chop-off the last character of a string. > 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? > Peter -- To unsubscribe from the list, just send an email to rebol-request at rebol.com with unsubscribe as the subject.
