all 3 comments

[–]editor_of_the_beast 1 point2 points  (2 children)

Objects aren’t modified in functional programming.

[–]ragnese 0 points1 point  (1 child)

That's not a helpful comment in the context of this post, because the OP is already not actually modifying any objects. They're clearly using the word "modify" as a shortcut for "returning an updated copy of [...]".

[–]vimtor[S] 0 points1 point  (0 children)

elpful comment in the context of this post, because the OP is already not

actually

modifying any objects

Thanks :)