Eugene McDonnell wrote:
> Have you looked at Phrases m137 and m138?
That's the same mistake I initially made.
Given n=:1 2 3 0 5 0 7 0 0
The objective is not
(] -. 1 {. 0 {. ]) n
1 2 3 5 7
or
(# {. ] -. 1 {. 0 {. ]) n
1 2 3 5 7 0 0 0 0
The goal is:
({~ [EMAIL PROTECTED] >./\@:* ([EMAIL PROTECTED] 1{.0{.])) n
1 2 3 3 5 5 7 7 7
(Except, the original domain was 2 dimensional
character arrays.)
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm