# Mystery regarding use of Sequence function ...

**URL:** <https://community.wolfram.com/t/mystery-regarding-use-of-sequence-function/3784>\
**Category:** Questions\
**Tags:** mathematica, logic\
**Created:** [October 26, 2014, 3:21pm UTC](https://community.wolfram.com/t/mystery-regarding-use-of-sequence-function/3784 "2014-10-26T15:21:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marktuttle](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@marktuttle](https://community.wolfram.com/u/marktuttle)\
**Post date:** [October 26, 2014, 3:21pm UTC](https://community.wolfram.com/t/mystery-regarding-use-of-sequence-function/3784/1 "2014-10-26T15:21:47Z")

</div>

Because some Boolean functions work on Lists and others on argument lists only, I need to better understand the Sequence command for converting the former to the latter.

For example, why … ?

I want to give Or a list of boolean literals.

This works …

```
Or @@ {False, True}

```

True

This doesn’t work …

```
Or[Sequence @@ {False, True}]

```

(out) Sequence[False, True]

This works …

```
Or[False, Sequence @@ {False, True}]

```

True

Why does the 3rd expression work when the 2nd does not?

Thank you.

---

<div class="post-metadata">

**Author:** ![fkampas](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/fkampas/32/41217_2.png) [@fkampas](https://community.wolfram.com/u/fkampas)\
**Post date:** [October 26, 2014, 3:38pm UTC](https://community.wolfram.com/t/mystery-regarding-use-of-sequence-function/3784/2 "2014-10-26T15:38:37Z")

</div>

The evaluation process can be tricky and is best studied with Trace.

```
In[2]:= Or[Sequence@@{False,True}]//Trace

Out[2]= {Or[Sequence@@{False,True}],{Sequence@@{False,True},HoldForm[False,True]},HoldForm[False,True]}

In[5]:= Or[False,Sequence@@{False,True}]//Trace

Out[5]= {False||Sequence@@{False,True},{Sequence@@{False,True},HoldForm[False,True]},Or[Sequence[False,True]],False||True,True}

```

---

<div class="post-metadata">

**Author:** ![marktuttle](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@marktuttle](https://community.wolfram.com/u/marktuttle)\
**Post date:** [October 26, 2014, 6:26pm UTC](https://community.wolfram.com/t/mystery-regarding-use-of-sequence-function/3784/3 "2014-10-26T18:26:06Z")

</div>

Thank you!

As you imply, I need to learn much more about the “evaluation process.”

For example, thanks to your advice re Trace I can see differences between what works and what doesn’t, but still don’t understand why.

I’ll save that question and related exploration for another day.

– Mark
