I was thinking about the idea of a set containing itself and that's driving me crazy.
An example of such set is the set of all things that are not turtles, since our set is a "set" then it's not turtle which means it's contained inside itself... but How is this even possible?
let's say set A is included in itself, then outer A just got bigger with another element then inner A gets bigger, then outer A gets bigger and so on. This never ends, it seems like a recursive...
testobj = {}; testobj.inner = testobj;and explore the object that resulted. Just don't try to expand it fully since you won't be able to. Don't try to runJSON.stringify(testobj)as that will throw errors or try to loop through the children as that can start an infinite loop that will cause your computer to run out of memory. – JMoravitz Nov 17 '22 at 21:06