[Jprogramming] What does gerund^:n do?
'Pascal Jasmin' via Programming
programming at jsoftware.com
Sat Nov 17 17:05:34 UTC 2018
-:`+^:_1 i.5
0 0.5 1 1.5 2
it applies the first verb. ignoring 2nd, and if there are more length error.
Hard to see usefulness, and if there was some, v0`v1`...vn^:n should behave like v0^:n
Though, I'm fine with error.
________________________________
From: Henry Rich <henryhrich at gmail.com>
To: programming at jsoftware.com
Sent: Saturday, November 17, 2018 11:54 AM
Subject: Re: [Jprogramming] What does gerund^:n do?
+`*`- i.5
is simply an execution of dyad i., looking up 5 in the boxed list.
+`*:^:_1 i.5
0 1 2 3 4
seems to result in y
gerund not length 2 is a length error?
other n seem to be domain errors including 0
Now you're getting warm. The first statement is false, the other two
are true.
Henry Rich
On 11/17/2018 11:04 AM, 'Pascal Jasmin' via Programming wrote:
> first there is
>> +`- i.5
> 2
> +`*`- i.5
> 3
>> seems like the number of items in gerund is the result no matter what?
>>> +`*:^:_1 i.5
> 0 1 2 3 4
>> seems to result in y
>> gerund not length 2 is a length error?
>> other n seem to be domain errors including 0
>> I'm ok with making this an error, rather than "improving" functionality to do something "powerful"
>> ________________________________
> From: Henry Rich <henryhrich at gmail.com>
> To: programming at jsoftware.com
> Sent: Saturday, November 17, 2018 10:39 AM
> Subject: Re: [Jprogramming] What does gerund^:n do?
>>>> No. All I see are domain errors when you try gerund^:n . The question
> is, For what values of gerund and n does gerund^:n not fail, and what
> does it do then?
>> (I already know the answer because I'm looking at the source code,
> wondering whether this is functionality we ought to keep)
>> Henry Rich
>>> On 11/17/2018 10:35 AM, Brian Schott wrote:
>> Does this shed any light?
>>>> gerund =. +`-
>> gerund/ i. 10
>> 9
>> gerund/ i. 11
>> _1
>> gerund^: i. 11
>> |domain error
>> | gerund ^:i.11
>> gerund^:3 i. 11
>> |domain error
>> | gerund ^:3 i.11
>> gerund^:3] i. 11
>> |domain error
>> | gerund ^:3]i.11
>> vgerund =. -
>> vgerund^:3] i. 11
>> 0 _1 _2 _3 _4 _5 _6 _7 _8 _9 _10
>>>>>> On Sat, Nov 17, 2018 at 10:20 AM Henry Rich <henryhrich at gmail.com> wrote:
>>>>> (Actually, I know the answer to this, but I can't find it in the
>>> documents anywhere & I wonder why it's supported).
>>>>>> For certain gerunds and certain n,
>>>>>> gerund^:n
>>>>>> does not produce an error. What does it do?
>>>>>> Henry Rich
>>>>>> ---
>>> This email has been checked for viruses by AVG.
>>> https://www.avg.com
>>>>>> ----------------------------------------------------------------------
>>> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list