11 22 33&( 0:`(<:@])`[}) 2
11 0 33

----- Original Message -----
From: Moon S <[email protected]>
To: programming <[email protected]>
Sent: Thursday, January 5, 2017 6:36 PM
Subject: [Jprogramming] Tacit definition involving adverb argument

Is there a tacit definition of such a verb? Is there a way to pass a
value to the adverb?

f =: 3 : '0 (<:y)} 11 22 33'

   f 1
0 22 33
   f 2
11 0 33


PS. Also, I couldn't suspect that besides a usual definition of dyad
adverb such as

1 : ('';':';'...x...m...y...')  NB. explicit defs inside

there's also a shorter way:

1 : '...[...x...]...'  NB. tacit defs inside

Of course the reading of The Phrases is very useful... but so hard!
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to