Why Julia (1,2,3) returns (1,2,0)

I am working on a Julia tutorial, and weirdly (1,2,3) returns (1,2,0).

(1,2,3,4) returns (1,2,0,0)

(1,2,3,4,5) returns (1,2,3,4,5) as expected.

It seems that sets of sizes 3 or 4 replace the third and fourth elements with 0. I do not expect this to be normal behavior, but I am not familiar with the environment, so I'm not sure I can do it.

I deleted all julia files from my profile and restarted the interpreter and the behavior is preserved.

Version 0.3.5 (2015-01-08 22:33 UTC) under the windows executed in cygwin. The same problem when executing from a command.

+5
source share
1 answer

This is a (very strange!) Long-lasting display error on Windows. You can read about it by reference - in a word, the value is correct, but it does not display correctly. It should also be fixed in the final release of Julia 0.4, which will use LLVM 3.5 (at least that's what the stream says).

+8
source

Source: https://habr.com/ru/post/1213015/


All Articles