Jsoftware
High-Performance Development Platform

Agenda with noun right argument

View: New views
5 Messages — Rating Filter:   Alert me  

Agenda with noun right argument

by Markus Schmidt-Gröttrup :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How is the noun case working?

  u @. n  

     +:`*: @. (0 1 0 ) 23 25 27
|domain error
|       +:`*:@.(0 1 0)23 25 27

I expected to perform +: on 23 and 27 but *: on 25.

   +:`*: @. ((%: = <.@:%: )"0) 23 25 27
46 625 54

works as expected.

In the dictionary examples I only foud the form
  u @. v
or the form
    u @. n
where n is boxed.

Greeting, Markus

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

Re: Agenda with noun right argument

by Raul Miller-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Aug 20, 2008 at 2:40 PM, Markus Schmidt-Gröttrup
<schmidt-groettrup@...> wrote:
> How is the noun case working?
>
>  u @. n

   +`-`*`%@.1
-
   +`-`*`%@.2
*
   +`-`*`%@.1 2 3
- * %

>    +:`*: @. (0 1 0 ) 23 25 27
> |domain error
> |       +:`*:@.(0 1 0)23 25 27

   +:`*: @. (0 1 0 )
+: *: +:
   (+: *: +:) 23 25 27
|domain error
|       (+:*:+:)23 25 27

> I expected to perform +: on 23 and 27 but *: on 25.
   0 1 0 (4 :'+:`*:@.x y'"0) 23 25 27
46 625 54

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

Re: Agenda with noun right argument

by Markus Schmidt-Gröttrup :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you, I think that would do.
But what "is"

+`-`*`%@.1 2 3

Is it a gerund? Or a fork of verbs?
The latter one is `: 6 for as far as I understand.

Raul Miller schrieb:

> On Wed, Aug 20, 2008 at 2:40 PM, Markus Schmidt-Gröttrup
> <schmidt-groettrup@...> wrote:
>  
>> How is the noun case working?
>>
>>  u @. n
>>    
>
>    +`-`*`%@.1
> -
>    +`-`*`%@.2
> *
>    +`-`*`%@.1 2 3
> - * %
>
>  
>>    +:`*: @. (0 1 0 ) 23 25 27
>> |domain error
>> |       +:`*:@.(0 1 0)23 25 27
>>    
>
>    +:`*: @. (0 1 0 )
> +: *: +:
>    (+: *: +:) 23 25 27
> |domain error
> |       (+:*:+:)23 25 27
>
>  
>> I expected to perform +: on 23 and 27 but *: on 25.
>>    
>    0 1 0 (4 :'+:`*:@.x y'"0) 23 25 27
> 46 625 54
>
>  
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Re: Agenda with noun right argument

by Raul Miller-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Aug 20, 2008 at 3:07 PM, Markus Schmidt-Gröttrup
<schmidt-groettrup@...> wrote:
> Thank you, I think that would do.
> But what "is"
>
> +`-`*`%@.1 2 3
>
> Is it a gerund? Or a fork of verbs?

The result of +`-`*`%@.1 2 3 is a verb fork.

The sentence +`-`*`%@.1 2 3 is a conjunction phrase where the left
argument to the conjunction @. is a gerund.

Also, a difference between `:6 and this aspect of @. is that you
can dynamically select the verbs that make up the resulting train.
(And, you can nest some subtrains).

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

Re: Agenda with noun right argument

by Markus Schmidt-Gröttrup :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for your explanation. Reading again in the dictionary I find  
"m@.n is a verb" making it clear. My wrong idea how to use m@.n
blindfolded my eyes.

Raul Miller schrieb:

> On Wed, Aug 20, 2008 at 3:07 PM, Markus Schmidt-Gröttrup
> <schmidt-groettrup@...> wrote:
>  
>> Thank you, I think that would do.
>> But what "is"
>>
>> +`-`*`%@.1 2 3
>>
>> Is it a gerund? Or a fork of verbs?
>>    
>
> The result of +`-`*`%@.1 2 3 is a verb fork.
>
> The sentence +`-`*`%@.1 2 3 is a conjunction phrase where the left
> argument to the conjunction @. is a gerund.
>
> Also, a difference between `:6 and this aspect of @. is that you
> can dynamically select the verbs that make up the resulting train.
> (And, you can nest some subtrains).
>
>  
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
LightInTheBox - Buy quality products at wholesale price!