# Extract unique types between two Tuples at compile time

**URL:** <https://discourse.julialang.org/t/extract-unique-types-between-two-tuples-at-compile-time/135476>\
**Category:** Performance\
**Tags:** tuple, generated\
**Created:** [February 5, 2026, 2:45pm UTC](https://discourse.julialang.org/t/extract-unique-types-between-two-tuples-at-compile-time/135476 "2026-02-05T14:45:00Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![StevenWhitaker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevenwhitaker/32/9749_2.png) [@StevenWhitaker](https://discourse.julialang.org/u/StevenWhitaker)\
**Post date:** [February 5, 2026, 5:12pm UTC](https://discourse.julialang.org/t/extract-unique-types-between-two-tuples-at-compile-time/135476/4 "2026-02-05T17:12:26Z")

</div>

I’m glad it works! Though I just realized that the function I gave you gives you `Symbol`s, not the types themselves. If you want the types themselves, define `make_nt` as:

```julia
@inline make_nt(T) = NamedTuple{(symbolize(T),)}((T,))

```

And then in `get_unique_types`:

```julia
return values(ntc)

```

---

_[View the full topic](https://discourse.julialang.org/t/extract-unique-types-between-two-tuples-at-compile-time/135476)._
