For example:
perm2=: 3 : 0
z=. i.1 0
for. i.y do. z=. ,/ (0,.1+z) {"2 1 \:"1 = i. 1+{:$z end.
)
t=: 5!:5 <'perm2'
t
3 : 0
z=. i.1 0
for. i.y do. z=. ,/ (0,.1+z) {"2 1 \:"1 = i. 1+{:$z end.
)
0!:0 'perm3=:',t
perm3
3 : 0
z=. i.1 0
for. i.y do. z=. ,/ (0,.1+z) {"2 1 \:"1 = i. 1+{:$z end.
)
----- Original Message -----
From: Yuvaraj Athur Raghuvir <[EMAIL PROTECTED]>
Date: Thursday, December 20, 2007 17:53
Subject: [Jprogramming] Recovering a multi-line verb from a string
To: Programming forum <[email protected]>
> Hello,
>
> I can use (5!:5) to get a string representation of a verb. If
> the verb is
> multiline, my attempts to use do (".) to recover the verb fails
> with a
> syntax error
>
> How to do it right?
>
> Regards,
> Yuva
>
> p.s: I am sending the verb as a string via a socket connection.
> This way I
> want to pass the verbs from the client to the server and then
> invoke it
> remotely.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm