# What happened to shift! unshift! on collections

**URL:** <https://discourse.julialang.org/t/what-happened-to-shift-unshift-on-collections/71588>\
**Category:** New to Julia\
**Created:** [November 16, 2021, 1:44pm UTC](https://discourse.julialang.org/t/what-happened-to-shift-unshift-on-collections/71588 "2021-11-16T13:44:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benibilme](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@benibilme](https://discourse.julialang.org/u/benibilme)\
**Post date:** [November 16, 2021, 1:44pm UTC](https://discourse.julialang.org/t/what-happened-to-shift-unshift-on-collections/71588/1 "2021-11-16T13:44:12Z")

</div>

Hello,

I have some notes about julia and there are supposed to be functions called `shift!` and `unshift!` on arrays. However in julia 1.6 environment, I receive error. There are no reference in the documentation. Are there available functions in place of them?

---

<div class="post-metadata">

**Author:** ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)\
**Post date:** [November 16, 2021, 1:58pm UTC](https://discourse.julialang.org/t/what-happened-to-shift-unshift-on-collections/71588/2 "2021-11-16T13:58:05Z")

</div>

I think they were renamed to `popfirst!` and `pushfirst!` a few years ago (for Julia 1.0).

---

<div class="post-metadata">

**Author:** ![benibilme](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@benibilme](https://discourse.julialang.org/u/benibilme)\
**Post date:** [November 16, 2021, 2:45pm UTC](https://discourse.julialang.org/t/what-happened-to-shift-unshift-on-collections/71588/3 "2021-11-16T14:45:13Z")

</div>

Thanks!
