Composition

Composition:
One of the most useful features of programming languages is their ability to take small building blocks and compose them. For example, the argument of a function can be any kind of expression, including arithmetic operators:
x=math.sin(degrees/360.02math.pi)
And even function calls:
x=math.exp(math.log(x+1))

Translate »