# Automate allocation

**URL:** <https://discourse.julialang.org/t/automate-allocation/56161>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [February 27, 2021, 10:00pm UTC](https://discourse.julialang.org/t/automate-allocation/56161 "2021-02-27T22:00:55Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![Albert\_Zevelev](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albert_zevelev/32/11844_2.png) [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Post date:** [June 9, 2021, 6:18pm UTC](https://discourse.julialang.org/t/automate-allocation/56161/15 "2021-06-09T18:18:55Z")

</div>

Yes.  
We talked about [assignment vs copy here](https://discourse.julialang.org/t/is-it-worth-introducing-copy-into-learnxiny/55965).

I brought this up in case future users come to this thread, so the diff betw the following is clear:

```julia
a, b, c = (zs for _ in 1:3)
a, b, c = (copy(zs) for _ in 1:3)

a, b, c = (copy(zs) for i in Iterators.repeated(zs))

```

---

_[View the full topic](https://discourse.julialang.org/t/automate-allocation/56161)._
