Versioninfo() gives:
*julia> versioninfo()*
Julia Version 0.3.2
Commit 21d5433* (2014-10-21 20:18 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin13.3.0)
CPU: Intel(R) Core(TM) i5-4308U CPU @ 2.80GHz
WORD_SIZE: 64
BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
I see that I was a version behind; upgrading to 0.3.3 fixed the problem for
me, too!
Thanks for the speedy replies!
Cheers,
Ron
On Sunday, December 21, 2014 7:36:46 PM UTC-8, Ronald L. Rivest wrote:
>
> I find the following behavior of zip extremely confusing;
> either I am misunderstanding something, or perhaps there
> is a bug in the implementation of zip(?) [I would expect
> the first and last expressions to give the same result!] :
>
>
> julia> [t for t in zip([2,3,4],[6,7,8])]
> 3-element Array{(Int64,Int64),1}:
> (2,6)
> (3,7)
> (4,8)
>
> julia> x = [2,3,4]
> 3-element Array{Int64,1}:
> 2
> 3
> 4
>
> julia> y = [6,7,8]
> 3-element Array{Int64,1}:
> 6
> 7
> 8
>
> julia> [t for t in zip(x,y)]
> 1-element Array{(Any,Any),1}:
> (4,7)
>
>
> Can anyone explain this behavior??
>
> Thanks!
>
> Cheers,
> Ron Rivest
>
>