hi .. novice here ..
if i understand correctly,

you could do something like:
    (`a`b`c)!(1 2 3)

using J's "apply" (128!:2)
    ('*:';'+:';'-:') (128!:2)&> (2 3 4)
NB. 4 6 2



On 2011-08-15 10:08, Kim Kuen Tang wrote:
>
> Hi everyone,
>
> here are some newbie questions regarding the differences between j and kdb.
>
> Are verbs ( dyad or monad)  first-class citizen in j?
> Is it possible to forward a verb to another verb?
> Is it possible to box a verb into list ?
> Is it possible to have a dictionary like the case in kdb?  Something
> like : (`a`b`c)!(1 2 3)
>
> What i want to do in j is to program a verb (i will call it p) that will
> accept a monad and output a plot of this monad.
>
> For example:
>
> f=. 3: 0 'y^2'
> p=. (implementation)
>
> p f will output the plot of f between -5 and 5.
>
>
> Thanks for any comments and answers.
>
> Reagrds,
>
> Kim
> ----------------------------------------------------------------------
> 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