type 'inv'
+------+
|adverb|
+------+
Adverbs modify the verb to their left.

Please excuse typos/brevity; composed on a handheld device.

-----Original Message-----
From: Alex Gian <[email protected]>
Sent: Saturday, 14 August 2010 10:52
To: Programming forum <[email protected]>
Subject: Re: [Jprogramming] Splitting an integer into its digits


Funny you should mention that!
I just wrote
invfunc =: ^:_1
10&#. invfunc 12345
to test my understanding of it.  Didn't know it was already in a lib.

May I ask - slightly OT - however,
<dumb_q>
Why is invfunc postfixed?
Surely with J's l2r evaluation (invfunc 10&#.) NNNN would be what first
springs to mind?
</dumb_q>

On Sat, 2010-08-14 at 10:18 +1200, Sherlock, Ric wrote:
>
> For the same reason I prefer to use:
>    10&#.inv
> inv is defined by the standard library
>    inv
> ^:_1
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to