On Mar 20, 2007, at 3:08 AM, Roger Hui wrote:

3. Yes, for example:
: ^: (1 < [: [EMAIL PROTECTED] [: /:~@":"0 (>:i.6) * ]) ^: _ ] 1
142857

f^:proposition^:_ y is a common construct, meaning
 z=. y
 while. proposition y do. z=. f z end.

The above gives a syntax error and I'm not finding any documentation on this construct. Do you mean something like this:

(1&+)^:(z<y)^:_ 3

It just displays itself, so that can't be right, but it's my best limited understanding.

regards,

Geoff
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to