[[]|[]] is typographically used not to represent the surreal number 0, but the game value * aka star.
[|] is typographically used to represent 0, where left and right are empty.
[-1|1] is also the number 0, as is [any negative number|any positive number].
Your choice of Javascript representations for surreal numbers and the supporting code lack this flexibility.
[[]|[]] is typographically used not to represent the surreal number 0, but the game value * aka star.
[|] is typographically used to represent 0, where left and right are empty.
[-1|1] is also the number 0, as is [any negative number|any positive number].
Your choice of Javascript representations for surreal numbers and the supporting code lack this flexibility.