2

Whats the difference between Composition @* and prefix @?

Composition[f,g,h][x] f@g@h[x]

Functionally they both seem to give the same result.

ions me
  • 881
  • 5
  • 11

1 Answers1

5
ClearAll[f, g]
h = f@g
h[x]      (* f[g][x] *)
h = f@*g
h[x]      (* f[g[x]] *)
Alan
  • 13,686
  • 19
  • 38