3 ms·
Most closures don't reference global mutable state. Generally they take immutable copies and you have to tell the compiler that you want mutable state which is
by fleitz 9y ago
Most closures don't reference global mutable state. Generally they take immutable copies and you have to tell the compiler that you want mutable state which is generally limited to the scope of the function the closure appears in.