Through
Through[p[f,g,…][x,y,…]]
gives p[f[x,y,…],g[x,y,…],…].
Through[expr,h]
performs the transformation wherever h occurs in the head of expr.
Details
- Through distributes operators that appear inside the heads of expressions.
- Parallelize[Through[p[f,g,…][x,y,…]]] computes Through[p[f,g,…][x,y,…]] in parallel on all subkernels. »
Examples
open allclose allBasic Examples (2)
Scope (2)
Properties & Relations (5)
Tabulate square roots of values without using auxiliary variables:
Compute Through in parallel:
Through[p[f,g,…][x]] is equivalent to Comap[p[f,g,…],x]:
Compare this to the operator form of Comap:
Through[p[f,g,…][x,y,…]] is equivalent to ComapApply[p[f,g,…],{x,y,…}]:
Compare this to the operator form of ComapApply:
Text
Wolfram Research (1988), Through, Wolfram Language function, https://reference.wolfram.com/language/ref/Through.html.
CMS
Wolfram Language. 1988. "Through." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Through.html.
APA
Wolfram Language. (1988). Through. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Through.html