Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: don't understand the basics of insert/part
Pages: [1] Print
Author Topic: don't understand the basics of insert/part  (Read 626 times)
newbie
Guest


Email
don't understand the basics of insert/part
« on: October 11, 2005, 12:21:31 PM »

I want to insert 7 after 123456 but it doesn't work it seems so basic to do  :blink:

>> a: "123456.txt"
== "123456.txt"
>> insert/part a "7" 7
== "123456.txt"
>> a
== "7123456.txt"
>>
Logged
CarlRead
Full Member
***
Offline Offline

Posts: 105


View Profile
don't understand the basics of insert/part
« Reply #1 on: October 12, 2005, 01:11:11 AM »

INSERT always works in the start of a series.  Using it with SKIP will do what you want, though...

>> a: "123456.txt"
== "123456.txt"
>> insert skip a 6 "7"
== ".txt"
>> a
== "1234567.txt"
Logged

- Carl Read
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: don't understand the basics of insert/part
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 08, 2008, 02:23:49 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2245 Posts in 589 Topics by 2259 Members
Latest Member: edibritrava

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc