match1 =: (#~ 1 < #@>)@:(]\ </. i.@((- <:)~ #))
I changed the spec to produce a list of boxes, since there may be differing numbers of matches
Henry Rich On 12/18/2016 3:32 PM, Skip Cave wrote:
aa =: 2 3 4 5 4 3 2 5 6 7 6 5 4 3 2 3 4 5 4
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
