,. _2{ ;@:(( <@,"1 0 G ({:"1@]#~(={."1))~{:)&.>)^:(a:~:{.)^:a: <0
Works in this case, but not with different length paths, consider H=. (#~12~:{."1) G then is misses paths that end with 12. -- Met vriendelijke groet, @@i = Arie Groeneveld ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm