if the query is the length error, then that is for the same reason that: d < ,7
also gives same error. the shapes are not comformable, i.e. left and right frames dont agree. -----Original Message----- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Linda Alvord Sent: 23 December 2011 07:42 To: 'Programming forum' Subject: [Jprogramming] Why won;t this work? d=:6 _5 7 3 r=: 13 :'(<./y),>./y' r <./ , >./ r d _5 7 (-i.10) 0 _1 _2 _3 _4 _5 _6 _7 _8 _9 1{.r d _5 (-i.10)<_5 0 0 0 0 0 0 1 1 1 1 (-i.10)<1{.r d |length error | (-i.10) <1{.r d (-i.10)<(1{.r d) |length error | (-i.10) <(1{.r d) I want something like this, but this is a simple example of what doesn't work. Linda ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm