# Why does \`1 \* String\[\]\` return a Vector{Union{}}?

**URL:** <https://discourse.julialang.org/t/why-does-1-string-return-a-vector-union/105049>\
**Category:** New to Julia\
**Created:** [October 17, 2023, 4:01am UTC](https://discourse.julialang.org/t/why-does-1-string-return-a-vector-union/105049 "2023-10-17T04:01:22Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [October 17, 2023, 2:30pm UTC](https://discourse.julialang.org/t/why-does-1-string-return-a-vector-union/105049/6 "2023-10-17T14:30:32Z")

</div>

Perhaps this topic can help:

> [@Behavior of all() and any() on empty vectors](https://discourse.julialang.org/t/behavior-of-all-and-any-on-empty-vectors/30963):
>
> This caught me by surprise: julia\> any(x-\>true, []) false julia\> all(x-\>true, []) true julia\> any(x-\>false, []) false julia\> all(x-\>false, []) true This seems like a bug - I think that all should never be true when any is false. But I’m guessing there’s a principled reason for this. Can anyone explain it to me?

---

_[View the full topic](https://discourse.julialang.org/t/why-does-1-string-return-a-vector-union/105049)._
