Because (#~.) y
is not the same as # ~. y You need [EMAIL PROTECTED] instead of (#~.) Alternative form (~:&# ~.) Henry Rich > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Yoel Jacobsen > Sent: Thursday, January 10, 2008 7:57 AM > To: Programming forum > Subject: [Jprogramming] Newbie: Tactit question > > 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 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
