This is how a (fully) tacit version of the verb can be produced using the
latest, not yet released, version of Jx based on J806,
JVERSION
Installer: j602a_win.exe
Engine: j806/j64/windows/beta/BEST/Jx/2017-06-29T16:12:38
Library: 6.02.023
( v3=. 'R' =:: ". o ('R'c) , ] )
'R' =:: ".@:('R'"_)
I am glad, thank you for bringing 3!:2 and 3!:1 to my attention. There
could be a high performance price to pay for going fully tacit from half
way tacit, not to mention, from explicit (which is another issue):
v0=. 3 : 'R=. R , y'
v0
3 : 'R=. R , y'
v0 1 2 3 [ R=. 0
0 1 2 3
lr
I am indeed not entirely sure what you are thinking of, but you can do
stuff like this:
nrep=: '3!:2 a.{~',&":a.i.3!:1
".nrep 1 2 3
1 2 3
That said, if you really want 5!:5 functionality but as a verb, and if
the use of : to construct that verb is a real problem for you, there's
nothing sto
"you cannot avoid referring to the name"
That is precisely the problem. If one intends to use ". , to solve the
original request, then the linear representation of the argument is
required and you have to name it. Hence,
lrep=: 3 :'5!:5<''y'''
lrep 1 2 3
1 2 3
works. However,
lrep
you cannot avoid referring to the name, but there's no need to use the
: conjunction for this.
For example:
lrep=: [: ". '5!:5 <''',,~]
lrep 'lrep'
[: ". '5!:5 <''' , ,~ ]
Thanks,
--
Raul
On Wed, Jul 5, 2017 at 1:20 PM, Jose Mario Quintana
wrote:
> What a coincidence that thi
What a coincidence that this type of question was posed a day after I
suggested to incorporate the unofficial Jx interpreter verb extension =::
into the official interpreter!
I am afraid that it is not possible to produce of that kind of verbs
without involving an explicit verb (or an adverb or a
That makes sense, thank you for the explanation.
2017-07-05 4:03 GMT+03:00 Raul Miller :
> Keep in mind that there's no variable y in this expression.
>
> Presumably the 13 : evaluator uses a dummy value of one when resolving
> the expression, but since 'y' is a constant rather than a variable, i
Keep in mind that there's no variable y in this expression.
Presumably the 13 : evaluator uses a dummy value of one when resolving
the expression, but since 'y' is a constant rather than a variable, it
does not know that you (and 5!:5) really meant it to be a reference to
the variable.
That's wha
This is exactly what I was looking for, thanks a lot!
I am slightly confused by this however:
13 : '5!:5<''y'''
(,'1')"_
as it seems to replace y with 1 instead of giving 3 : '5!:5<''y'''.
Thanks,
N.D.
2017-07-05 3:28 GMT+03:00 Raul Miller :
> Well, that depend on what you mean by a "tacit
Well, that depend on what you mean by a "tacit expression".
If your concept of tacit is one which does not use names, then no,
because this expression uses names.
If you prefer a more relaxed concept of tacit programming, however,
you might try something like this:
lrep=: 3 :'5!:5<''y'''
V
Explicitly:
R=: 0
V=: 3 : 'R=: R , ...'
Is there a way to write V in tacit form?
Thanks,
N.D.
--
For information about J forums see http://www.jsoftware.com/forums.htm
11 matches
Mail list logo