3 ms·
If arrays were first-class values we would be able to construct circular references: a[1] = a Even if we only allowed it on return values: function f
by ufo 4y ago
If arrays were first-class values we would be able to construct circular references:
a[1] = a
Even if we only allowed it on return values:
function f(x) {
return x
}
a[1] = f(a)