Tweeted twitter.com/StackMma/status/1074182471653052417
3 edited tags
| link
2 edited tags
source | link

I'd need to apply all functions in a list to a BlankNullSequence (___)

But when I tried

Through[{Abs, Dot, Plus, Power, Times}[___]]
(*{Abs[___], ___, ___, ___, ___}*)

it works well only with Abs. I'd like to have the result

{Abs[___], Dot[___], Plus[___], Power[___], Times[___]}

How can I have this as an output? Why in my example there is a difference among Abs, Dot, Plus etc.?

I'd need to apply all functions in a list to a BlankNullSequence ___

But when I tried

Through[{Abs, Dot, Plus, Power, Times}[___]]
(*{Abs[___], ___, ___, ___, ___}*)

it works well only with Abs. I'd like to have the result

{Abs[___], Dot[___], Plus[___], Power[___], Times[___]}

How can I have this as an output? Why in my example there is a difference among Abs, Dot, Plus etc.?

I'd need to apply all functions in a list to a BlankNullSequence (___)

But when I tried

Through[{Abs, Dot, Plus, Power, Times}[___]]
(*{Abs[___], ___, ___, ___, ___}*)

it works well only with Abs. I'd like to have the result

{Abs[___], Dot[___], Plus[___], Power[___], Times[___]}

How can I have this as an output? Why in my example there is a difference among Abs, Dot, Plus etc.?

1
source | link

Apply functions to a BlankNullSequence

I'd need to apply all functions in a list to a BlankNullSequence ___

But when I tried

Through[{Abs, Dot, Plus, Power, Times}[___]]
(*{Abs[___], ___, ___, ___, ___}*)

it works well only with Abs. I'd like to have the result

{Abs[___], Dot[___], Plus[___], Power[___], Times[___]}

How can I have this as an output? Why in my example there is a difference among Abs, Dot, Plus etc.?