Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: insert

From: tim-johnsons::web::com at: 2-Apr-2009 10:10

On Thursday 02 April 2009, Iyer wrote:
> All, > > I have defined the following (on my OS X, both R2 2.7.6 & R3 A40) : > >> num: [1 2 3] > > then I execute the following: > >> num: insert tail num [4], expecting [1 2 3 4]. However, I get: > >> > >> [] > >> > >> print num > >> > >> [] > > Any suggestions? Join works though!
Help is your friend:
>> help insert
USAGE: INSERT series value /part range /only /dup count DESCRIPTION: Inserts a value into a series and returns the series after the insert. INSERT is an action value. ARGUMENTS: series -- Series at point to insert (Type: series port bitset) value -- The value to insert (Type: any-type) REFINEMENTS: /part -- Limits to a given length or position. range -- (Type: number series port pair) /only -- Inserts a series as a series. /dup -- Duplicates the insert a specified number of times. count -- (Type: number pair) Note the the return value ..... thanks Tim