Flat
Flat is an attribute that can be assigned to a symbol f to indicate that all expressions involving nested functions f should be flattened out. This property is accounted for in pattern matching.
Examples
Define a flat function:
SetAttributes[f, Flat]
f[f[a, b], c]
(* f[a, b, c] *)Please visit the official Wolfram Language Reference for more details.