No, &: works properly.  That note is just saying that monadic &: may not be as fast as monadic @: because some special forms containing @: are not recognized for &: .

You are using &: dyadically.  You ended up executing

0 (1&Z: ] ]) 1

but 0 (1&Z:) 1 executes 1&Z: 0 times (see https://code.jsoftware.com/wiki/Vocabulary/ampm)

Henry Rich

On 1/16/2020 11:50 AM, 'Sergey Kamenev' via Programming wrote:
The bugs are yours.

Thank you!

In your second bug, you are not executing 1&Z: .  You should have @: not &: .

Does &: not work because of this?
https://code.jsoftware.com/wiki/Vocabulary/ampco

The monadic use of &: is deprecated. Use @: instead.
Some compounds of the form f&:g are not recognized for special code in places where f@:g is recognized, if only the monadic form of the compounds is eligible for special treatment.

Sergey
----------------------------------------------------------------------
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