[Jprogramming] What does gerund^:n do?
Henry Rich
henryhrich at gmail.com
Sat Nov 17 17:56:01 UTC 2018
I am not eager to implement any new feature: it requires changes to
tests, documentation, dissect & lint. Plus, if you get it wrong you
have to live forever with your mistake. I will always listen to
proposals, though.
Henry Rich
On 11/17/2018 12:53 PM, 'Pascal Jasmin' via Programming wrote:
>>> I think there are good cases for `:n to work for more n.
>> and if gerund y is to do something, it should be through `:n , though an implied `:6 might be considered.
>> ^:_1 should produce inverses and only inverses imo, and ^:n should do the same as ^:v (where n is result of v y)
>> However, one use for this is to check that both gerund items are verbs, and there are only 2. (errors if non verb is either of gerunds) but its not graceful and doesn't recover with `::`
>> Now, if you are excited about implementing gerund^:n to do something, I can think harder about something useful. But treating it as a typo is at first thought, an improvement, and whatever I could come up with, some would still prefer it be treated as a typo.
>>>> ________________________________
> From: Henry Rich <henryhrich at gmail.com>
> To: programming at jsoftware.com
> Sent: Saturday, November 17, 2018 12:23 PM
> Subject: Re: [Jprogramming] What does gerund^:n do?
>>>> Yes. And it does the same for the dyadic case.
>> I wonder why this was done; and whether this or anything else should be
> done in this case.
>> Henry Rich
>> On 11/17/2018 12:05 PM, 'Pascal Jasmin' via Programming wrote:
>> -:`+^:_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
>> ----------------------------------------------------------------------
>> 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