On Mon, 27 Sep 2021, Henry Rich wrote:
even =. -:@:([. + &) odd =. -:@:([. - &)
Or, with fewer parentheses (and mirroring the definitions in the dictionary): [. + & % 2: ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
