On Sat, Nov 23, 2019 at 11:25 AM Skip Cave <[email protected]> wrote:

> NB. some interesting results:
>
> datatype each 3j6 3ar6 3ad6 1j0
>
> │complex│complex│complex│complex│
>

Something which appears to be getting in the way of your testing is the
fact that the constant
3j6 3ar6 3ad6 1j0
is being assembled into a list even before "datatype each" enters the
picture. Even though each individual numbers may have distinct types, J
will wind up constructing a list of type complex from them. Then the
"datatype each" will see 4 complex numbers.

Compare with:
datatype each 3j6;3ar6;3ad6;1j0
|complex|complex|complex|integer|

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

Reply via email to