See more

In the above example, square is a pure function. It acts on a single value, x, and returns the square of x. The function getNumber, however, will eventually return a result. But we don’t want to care about …

square

x

getNumber

In the above example, square is a pure function. It acts on a single value, x, and returns the square of x. The function getNumber, however, will eventually return a result. But we don’t want to care about t…