# X::Vector{Union{Missing, Any}}

**URL:** <https://discourse.julialang.org/t/x-vector-union-missing-any/14896>\
**Category:** New to Julia\
**Created:** [September 13, 2018, 6:34am UTC](https://discourse.julialang.org/t/x-vector-union-missing-any/14896 "2018-09-13T06:34:18Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nalimilan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nalimilan/32/147_2.png) [@nalimilan](https://discourse.julialang.org/u/nalimilan)\
**Post date:** [September 13, 2018, 4:17pm UTC](https://discourse.julialang.org/t/x-vector-union-missing-any/14896/4 "2018-09-13T16:17:07Z")

</div>

> [@DominiqueMakowski](#):
>
> I see, so if I undestand correctly, there are no specific type for “missing” that would not be “any”? In other words, “any-with-missing” and “any-without-missing” are not dissociated?

Indeed, since (as its name indicates) `Any` can be any value, including `missing`.

In general, use `::AbstractArray{>:Missing}` to define a method which should be called for any array which can contain `missing`. But note that in many cases you can just define a single generic method, knowing that the compiler will (often) optimize out `ismissing(A[i])` calls when the array cannot contain `missing`.

---

_[View the full topic](https://discourse.julialang.org/t/x-vector-union-missing-any/14896)._
