5

In the degenerative case, sorting just one number in J

2/:2

gives (correctly)

2

but why

1/:1

gives (incorrectly)

0

?

1
  • Also, #$ 2 /: 2 result shape is 1 (list) as expected #$ 1 /: 1 result shape is 0 (atom), not a list as expected. I have asked on J forums to see if any answers pop up.
    – bob
    Commented Apr 11, 2015 at 17:12

1 Answer 1

2

It is a bug in some J versions. The correct is of course 1.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.