Compose and Pipe
Compose:
Composing or Composition is the idea that any sort of data transformation that we do should be obvious.
In a factory, we have a data that gets processed by a function and outputs a data and processed by another function and outputs a data and so for.
data --> function --> data --> function -->
Composability is a system design principle, that deals with the relationship between components.
Pipe:
Pipe is same as compose, instead going from right to left, it goes left to right.
Arity:
Arity is simply the number of arguments that a function takes.
Last updated