Replacing Or with List
You can use ReplaceAll
(/.
) to replace any Head
with another. In combination with Sequence
:
{a, Or[b, c], d} /. Or -> Sequence
{a, b, c, d}
You can use ReplaceAll
(/.
) to replace any Head
with another. In combination with Sequence
:
{a, Or[b, c], d} /. Or -> Sequence
{a, b, c, d}