booltest =: +./@,
Henry Rich
On 5/11/2014 5:08 PM, 'Pascal Jasmin' via Programming wrote:
booltest =. (0<+./) *. 0<#
is designed to return 0 for 0 0 0 and i.0, and hopefully this:
booltest i.0 0, but:
(i.0) -: booltest i.0 0
1
the problem with all of this is:
3 : 'if. booltest i. 0 0 do. 1 else. 0 end.' 4
1
so, it appears I need a 3 part test? How would I write it?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm