Oh that's nice.
{{m*n}} must be the new conjunction notation. (because of m,n)
On 12/20/20 7:00 AM, [email protected] wrote:
Date: Sat, 19 Dec 2020 15:36:04 -0500
From: Raul Miller<[email protected]>
To: Chat forum<[email protected]>
Subject: Re: [Jchat] AOC2020
Message-ID:
<cad2jou8679whlhg1if8vrhsxr4hm_ura5rlivpku1bxt828...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
For simple arithmetic, you can get precedence into an expression using
stringreplace
For example, define:
add=: +
sub=: -
mult=: {{m*n}}
div=: {{m%n}}
Then string replace to use the names instead of the symbols at
evaluation time (make sure to throw in spaces on each side of the
names, just in case).
FYI,
-- Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm