Raul wrote:
> out=: [ ~: 1 1}. _1 _1}. -...@] |.!.0 (0 1 0,1,:0 1 0) {.~ 2 + $...@[Neat and rapid response! I wish we could avoid explicitly handling the edge conditions though (2 + ... 1 1 }. .. _1 _1 }. ). -Dan ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
