I say just add /tail to 'copy and 'remove

Paul Tretter

----- Original Message ----- 
From: "Gregg Irwin" <[EMAIL PROTECTED]>
To: "PeterWAWood" <[EMAIL PROTECTED]>
Sent: Tuesday, December 14, 2004 11:40 AM
Subject: [REBOL] Re: Best way to remove the last character from a string?


> 
> Peter et al,
> 
> P> I've worked out two ways to chop-off the last character of a string.
> ...
> P> Can anyone suggest a less verbose, clearer and quicker way for me?
> 
> This is a great topic for general discussion of a CHOP mezzanine!
> 
> I'm sure a lot of us have them, and different ones for different uses.
> If we can come up with a good one, then we can propose it to RT for
> inclusion in REBOL. The trick is that it must be a good, flexible
> function (IMO).
> 
> Thoughts:
> 
>    Chop n items from head, tail, or both (default: tail)?
> 
>    Chop at an arbitrary position in the series, or just use
>    AT when you make the call?
> 
>    n can be a number other than one, but default behavior
>    is to chop one item?
> 
>    Should the series be copied, or altered in place?
> 
>    Return the item(s) removed, or should that be a different
>    function (PULL, CUT)?
> 
> 
> -- Gregg                         
> 
> -- 
> To unsubscribe from the list, just send an email to rebol-request
> at rebol.com with unsubscribe as the subject.
>
-- 
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.

Reply via email to