WLJS LogoWLJS Notebook

Through

Through[p[f, g, ...][x, y, ...]] gives p[f[x, y, ...], g[x, y, ...], ...].

Examples

Apply multiple functions to the same argument:

Through[{f, g, h}[x]]
(* {f[x], g[x], h[x]} *)

Apply Min and Max together:

Through[{Min, Max}[{1, 5, 3, 2}]]
(* {1, 5} *)

With boolean operations:

Through[And[EvenQ, Positive][4]]
(* True *)

Please visit the official Wolfram Language Reference for more details.

On this page