What if we pass a mutable object as argument to a function and the function reads this mutable object to do some calculations but does not modify it. Will it be considered pure or impure ?
What if a function modifies the same mutable object. Since this function is creating side effects, it will not be pure. Right?