Mistake, it should be: ]fill =. 10 20 30 40 50 60 70
2009/8/13 Matthew Brand <[email protected]>: > Hi All, > > I am trying to do something a bit simple, but am really struggling to > find the right expression. > > Suppose I have some data, and some default values to use in case there > is no data: > ]data =. a:,(1;2;3),a:,(3;2) > ]fill =. 10 20 30 40 50 60 70 80 > > The result I want is: > 10;1;2;3;50;3;2 > > I have tried soooo many permutation of this form with error after error... > data ( [...@.(a: = [) ) fill > > Is there a simple trick that I am missing to do this task? > Perhaps there is way to use ^: because @. is not very efficient and > usually requires "0? > > Thanks, > Matthew. > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
