# What are the plans for \`x.\[1\]\`?

**URL:** <https://discourse.julialang.org/t/what-are-the-plans-for-x-1/47945>\
**Category:** New to Julia\
**Created:** [October 7, 2020, 4:26pm UTC](https://discourse.julialang.org/t/what-are-the-plans-for-x-1/47945 "2020-10-07T16:26:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [October 7, 2020, 4:26pm UTC](https://discourse.julialang.org/t/what-are-the-plans-for-x-1/47945/1 "2020-10-07T16:26:02Z")

</div>

I think this came up a while ago but it’s a hard thing to search for.

Are there any plans in the language for `x.[1]` as an alias for `getindex.(x, 1)`?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [October 7, 2020, 4:38pm UTC](https://discourse.julialang.org/t/what-are-the-plans-for-x-1/47945/2 "2020-10-07T16:38:10Z")

</div>

I know this isn’t exactly what you’re asking, but you can achieve something similar with [`UnderscoreOh.jl`](https://github.com/tkf/UnderscoreOh.jl)

```julia
julia> using UnderscoreOh

julia> v = [rand(2) for _ in 1:5]
5-element Vector{Vector{Float64}}:
 [0.6085133215181955, 0.6737658732824161]
 [0.7391928545794244, 0.8981975869418919]
 [0.4922990986854112, 0.6342074018581634]
 [0.6917310532402914, 0.6833501012445014]
 [0.6156112200856345, 0.9754178381164584]

julia> (_o[1]).(v)
5-element Vector{Float64}:
 0.6085133215181955
 0.7391928545794244
 0.4922990986854112
 0.6917310532402914
 0.6156112200856345

julia> (_o[2]).(v)
5-element Vector{Float64}:
 0.6737658732824161
 0.8981975869418919
 0.6342074018581634
 0.6833501012445014
 0.9754178381164584

```

---

<div class="post-metadata">

**Author:** ![mcabbott](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcabbott/32/6603_2.png) [@mcabbott](https://discourse.julialang.org/u/mcabbott)\
**Post date:** [October 7, 2020, 4:49pm UTC](https://discourse.julialang.org/t/what-are-the-plans-for-x-1/47945/3 "2020-10-07T16:49:33Z")

</div>

You might be thinking of this issue: [https://github.com/JuliaLang/julia/issues/30845](https://github.com/JuliaLang/julia/issues/30845)

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [October 7, 2020, 4:54pm UTC](https://discourse.julialang.org/t/what-are-the-plans-for-x-1/47945/4 "2020-10-07T16:54:17Z")

</div>

Thanks! Indeed this is it. Looks like there are a lot of issues to work out with regards to that feature and a lot of thoughtful discussion around it.
