Do you mean this sort of thing? - g =: (+/@:=)"0 1 6 10 15 25 g i.20 1 1 1 0
Please note your example line looked at first sight as if you were working on i.201 1 1 , at least in my mail handler, Mozilla Thunderbird. Mike On 12/06/2019 14:27, JmageK wrote:
(([: +/ =&6) , ([: +/ =&10) , ([: +/ =&15)) i.201 1 1 How can I generate the above code for abirary comparison to i.20(example input) without repeating myself? I get errors if I try any variations of the following f=: 3 : '([: +/ x=y)' 2 f i.5| domain error Thanks in advance. JmageK
--- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
