Why are the binary trees immutable?

asked 2023-01-13 02:15:12 +0100

mrutkuokur gravatar image

The class BinaryTree is immutable. Is there an advantage to this?

edit retag flag offensive close merge delete

Comments

They can be modified using the clone protocol.

FrédéricC gravatar imageFrédéricC ( 2023-01-13 08:16:51 +0100 )edit