Home   Archive   Permalink



surprise can't read one dimensional array

R E B O L [MY TEST]
xxdata: array/initial 6 0
j: 2
probe xxdata/j
    
The above doesn't work, what am I doing wrong?


posted by:   Gisli Gissurarson     12-May-2012/11:25:33-7:00



Try using one of the following:
    
xxdata/:j
xxdata/(j)
pick xxdata j
    
xxdata/j ;this tries to find J word in xxdata block:
xxdata: [1 2 j 4 5]
>> xxdata/j
== 4


posted by:   Endo     14-May-2012/2:49:15-7:00



xxdata/:J is the most common way
    
>> xxdata: array/initial 6 0
== [0 0 0 0 0 0]
>> j: 2
== 2
>> xxdata/:j
== 0

posted by:   MaxV     23-May-2012/3:49:56-7:00