Re: [Jprogramming] modifiers

2020-03-09 Thread Jose Mario Quintana
I wrote: > This has been an area of J (the language described by the official documentation, as opposed to j, the language implemented by a particular interpreter) that it is not entirely clear to me. May I start from the beginning? > > > > an=. <@:((,'0') ,&:< ])f. NB. Atomizing nouns (monad

Re: [Jprogramming] modifiers

2020-03-09 Thread Henry Rich
Ye Dic mentions only verb trains under `: .    an=.  <@:((,'0') ,&:< ])f.    (<,'+:') ` (an 1) @. 0 1 2 The ARs are converted to a sequence of words and that sequence is executed.  I guess it couldn't be any other way - a value has to have a single part of speech.    (an 1) `(<,'+:')  @. 0 1

Re: [Jprogramming] modifiers

2020-03-09 Thread Raul Miller
On Mon, Mar 9, 2020 at 6:21 PM Jose Mario Quintana wrote: > May I start from the beginning? > > > > an=. <@:((,'0') ,&:< ])f. NB. Atomizing nouns (monadic verb) > > > > > > (<,'"') ` (an 1) (`:6) > > > "1 > > > (<,'"') ` (an 1) @. 0 1 > > > "1 > > > > > > They are considered illegal becaus

Re: [Jprogramming] modifiers

2020-03-09 Thread Jose Mario Quintana
> > A shorter version of Jose's argument. > > > > Functional programming requires the ability to pass functions as arguments. A missing feature in J is to pass modifiers as arguments, and Yes, perhaps I covered too much ground. > We could generate three identifiers which could be used as > place

Re: [Jprogramming] modifiers

2020-03-09 Thread Raul Miller
Note that another option for passing modifiers as arguments would be to use placeholder verbs as arguments to the modifiers and then passing the resulting verb. As long as the placeholders are identifiable, they can then be easily replaced. For example, given: genid=:({~ ?@#~@#)@((#~_1<:nc@<"0

Re: [Jprogramming] modifiers

2020-03-09 Thread 'Pascal Jasmin' via Programming
A shorter version of Jose's argument. Functional programming requires the ability to pass functions as arguments.  A missing feature in J is to pass modifiers as arguments, and atomic representations is the best (or at least a very good) way of getting around that limitation. examples of Jose'