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

[REBOL] Re: Strange array behavior

From: dockimbel::free::fr at: 22-May-2002 0:51

Geza Lakner MD wrote:
> Hi REBOL-fellows! > > Why does not properly work this code segment: > > >> a: array/initial [3 2] [[]] > == [[[] []] [[] []] [[] []]] > >> append a/1/2 3 > == [3] > >> a > == [[[3] [3]] [[3] [3]] [[3] [3]]] > > Hmmm, I' ve expected at querying 'a : > == [[[] [3]] [[] []] [[] []]]
[...] This should solve your issue :
>> a: array/initial [3 2 1] []
== [[[] []] [[] []] [[] []]]
>> append a/1/2 3
== [3]
>> a
== [[[] [3]] [[] []] [[] []]] Regards, -DocKimbel.