# Base.nonmissingtype and Core.Compiler.typesubtract aren't exported

**URL:** https://discourse.julialang.org/t/base-nonmissingtype-and-core-compiler-typesubtract-arent-exported/24367
**Category:** Internals & Design
**Created:** [May 18, 2019, 11:11pm UTC](https://discourse.julialang.org/t/base-nonmissingtype-and-core-compiler-typesubtract-arent-exported/24367 "2019-05-18T23:11:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Diego\_Javier\_Zea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/diego_javier_zea/32/1858_2.png) [@Diego\_Javier\_Zea](https://discourse.julialang.org/u/Diego_Javier_Zea)
#### Post date: [May 18, 2019, 11:11pm UTC](https://discourse.julialang.org/t/base-nonmissingtype-and-core-compiler-typesubtract-arent-exported/24367/1 "2019-05-18T23:11:51Z")

</div>

Hi!

I was trying to create new arrays a, b with the not missing elements of A and B, respectively and I want to exclude `Missing` from the element type of `a` and `b`.

Sadly, `Base.nonmissingtype` and `Core.Compiler.typesubtract` aren’t exported. Is it possible to export those functions?

As a workaround, I’m using `collect(skipmissing(...` over a and b just to get `nonmissingtype` called.

Best regards,

---

<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: [May 19, 2019, 10:30am UTC](https://discourse.julialang.org/t/base-nonmissingtype-and-core-compiler-typesubtract-arent-exported/24367/2 "2019-05-19T10:30:20Z")

</div>

See [Export Base.nonmissingtype · Issue #30657 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/30657). You can use `Missings.T` for now too.
