the.bay.news

NTuple type vs conversion inconsistency

Julia Programming Language
NTuple type vs conversion inconsistency
I find this a bit weird: julia> x = (1, "a fish") (1, "a fish") julia> x isa NTuple{2} false julia> NTuple{2}(x) ≡ x true That is, T(x) ≡ x yet x is not a T.

I find this a bit weird: julia> x = (1, "a fish") (1, "a fish") julia> x isa NTuple{2} false julia> NTuple{2}(x) ≡ x true That is, T(x) ≡ x yet x is not a T.

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.