# In julia, how to realize a=b\[-1:2\] as in R without modifying b

**URL:** <https://discourse.julialang.org/t/in-julia-how-to-realize-a-b-1-2-as-in-r-without-modifying-b/1447>\
**Category:** New to Julia\
**Created:** [January 12, 2017, 7:46pm UTC](https://discourse.julialang.org/t/in-julia-how-to-realize-a-b-1-2-as-in-r-without-modifying-b/1447 "2017-01-12T19:46:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [January 12, 2017, 7:48pm UTC](https://discourse.julialang.org/t/in-julia-how-to-realize-a-b-1-2-as-in-r-without-modifying-b/1447/2 "2017-01-12T19:48:38Z")

</div>

See [Julia equivalent to 'not in' in R](https://discourse.julialang.org/t/julia-equivalent-to-not-in-in-r/835)

---

_[View the full topic](https://discourse.julialang.org/t/in-julia-how-to-realize-a-b-1-2-as-in-r-without-modifying-b/1447)._
