Programming, Computer Science, JavaScript, Functional Programming.
one number; if asked whether it contains a different number with has, Insert will pass responsibility for determining this off to its contained set. We can use this class to complete our implementation of Empty, with a trivial implementation of add: add(n: number) { return new Insert(number, this);