Here's a variant. Suppose I only want characters 2 through 5? Or 3 until the end? Or I want to remove those selections? Personally, I have a hard time working with series! with next and skip and tail and so forth. A pointer to a list element which I cannot see irritates me.
----- Original Message ----- From: "Ladislav Mecir" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 03, 2002 6:27 PM Subject: [REBOL] Re: Newbie Q: Cropping text > Hi Matt, > > do you mean something like: > > copy/part "asdfghjkl" 3 ; == "asd" > > -L > > ----- Original Message ----- > From: "Matthew Kim" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, July 03, 2002 9:49 PM > Subject: [REBOL] Newbie Q: Cropping text > > > What line of code in REBOL will crop text? (Without loops) > > For example, I want the first 3 characters in the string "asdfghjkl". > > Result should be: "asd". > > Thanks! > Matt > > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > > > > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
