Its not quite the case that it has to be a constant, but it does have to be a
noun.
this conjunction is useful for tacit code and dyadic adverbs that take noun
arguments:
eval =: 1 : ' a: 1 : m'
advswap =: 2 : (':';'u x v eval y')
1 2 3 ([ 13 advswap '}' ]) i.10
0 13 13 13 4 5 6 7 8 9
does constant replacement instead of constant index
----- Original Message -----
From: Erling Hellenäs <[email protected]>
To: [email protected]
Cc:
Sent: Saturday, July 5, 2014 3:59:22 PM
Subject: [Jprogramming] Tacit J and indexed replacement
Hi all !
When you write tacit code, the index m used by Amend, syntax
description x m} y, is a constant?
Normally you have a variable you want to use for indexing? This means
Amend is seldom useful for indexed replacement when you write tacit J?
Are there any descriptions of nice ways to do indexed replacement in
tacit J?
As with Amend, the result has to be a new variable, of course.
Cheers,
Erling Hellenäs
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm