Following is a creenshot of my "J" console. I do not understand why I am
getting a error>
=================
compress 4 : 0
i =. 0
t =. 0$0
while. i < $x do.
if. 1 = i{x do. t =. t , i{y end.
i =. >:i
end.
return t
)
compress 4 : 0
i =. 0
t =. 0$0
while. i < $x do.
if. 1 = i{x do. t =. t , i{y end.
i =. >:i
end.
return t
)
b compress a
|value error: compress
| b compress a
a
11 12 13 14 15 16 17 18 19 20
b
1 0 1 0 1 0 1 0 1 0
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm