[Jprogramming] Verb to string and Verb array
Raul Miller
rauldmiller at gmail.com
Tue Apr 14 11:21:43 UTC 2015
Note also that +/ %# 2 3 4 is not equivalent to executing the verb
+/%# on the argument 2 3 4.
You need a parenthesis around the verb, to get the right "mean"ing.
Thanks,
--
Raul
On Tue, Apr 14, 2015 at 4:11 AM, Jon Hough <jghough at outlook.com> wrote:
> I have a couple of questions:
> 1. Is it possible to convert a verb, e.g. +/%# , to a string?": '+/%# 2 3 4' executes a stringed verb with an argument. But how would I convert a verb to a string in the first place?
> Also, I discovered the eval verb
>
>
> eval=: 1 : 0
>
> ". 'w =. ' , u
>
> (ar < 'w') ab
>
> )
>
>
> Does this have an inverse?
>
> 2. If I have two verbs (or conjunctions, adverbs for that matter), can I not pass them around in a list?
> e.g. in other languages, like C# I can put functions into a list (List<Action> for example).
> I searched JforC and the J website and couldn't find any way to do this.
> Thanks Jon
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list