Multiple distinct objects
[Foo.new] * n # incorrect (only one distinct object is created)n.of {Foo.new} # correctLast updated
Was this helpful?
[Foo.new] * n # incorrect (only one distinct object is created)n.of {Foo.new} # correctLast updated
Was this helpful?