Pure vs. Impure values
Reading Time: 2 minutes In FP, we frequently talk about purity & impurity of values.In this brief post, we’ll brush up our concepts of the same, along with some examples. What could an impure value be? As we can see, a value is pure, if it conforms very strictly to its type. In case of pureFunctionValue the declared type said that it was a function which takes an Int Continue Reading