This might be interested to you, http://www.jsoftware.com/pipermail/programming/2007-December/009044.html
Actually the solutions also apply to array above rank-1. Yoel Jacobsen wrote:
Hello, Why does the following raises a length error: ((#~.) ~: #) 1 2 3 4 1 Why isn't it like: (# ~. 1 2 3 4 1) ~: (# 1 2 3 4 1) Goal: to check if there a duplicates in an array.. Thanks, Yoel ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
-- regards, bill ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
