It's to guard against future changes. But the requirement was to "preserve immutability" and so this makes the original data set immutable going forward.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
To be very thorough:
This approach is the only one that seems to work for me.
Why would you need to freeze it? This stuff is synchronous, how would it change in the middle of your operation?
It's to guard against future changes. But the requirement was to "preserve immutability" and so this makes the original data set immutable going forward.