You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia version 1.3.1
versioninfo()
Julia Version 1.4.1
Commit 381693d3df* (2020-04-14 17:20 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Xeon(R) CPU @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, haswell)
collect(Iterators.Stateful(2x for x in 1:3))
2-element Array{Int64,1}:
2
4
The text was updated successfully, but these errors were encountered:
The input has 3 elements, I would therefore expect the output also to have 3 elements, but there are only 2.
On the other hand, the problem disappears if
we remove the generator
we use
iterate
directlyversioninfo
The problem also appears in julia 1.3.1, but it seems to be behaving as expected in 1.0.
Edit:
My 1.3.1 trial was in an online REPL (https://replit.com/languages/julia) which claims to be 1.3.1 but
versioninfo()
shows 1.4.1The text was updated successfully, but these errors were encountered: