# Help with two Julia lines of code whose syntax is unclear to me

**URL:** https://discourse.julialang.org/t/help-with-two-julia-lines-of-code-whose-syntax-is-unclear-to-me/21769
**Category:** New to Julia
**Created:** [March 12, 2019, 6:49am UTC](https://discourse.julialang.org/t/help-with-two-julia-lines-of-code-whose-syntax-is-unclear-to-me/21769 "2019-03-12T06:49:18Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![improbable22](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/improbable22/32/5464_2.png) [@improbable22](https://discourse.julialang.org/u/improbable22)
#### Post date: [March 12, 2019, 6:58am UTC](https://discourse.julialang.org/t/help-with-two-julia-lines-of-code-whose-syntax-is-unclear-to-me/21769/2 "2019-03-12T06:58:45Z")

</div>

Findmax returns a tuple, as you can check:

```julia
julia> r = rand(10);

julia> findmax(r)
(0.7466769692672559, 7)

```

And `.-` is element-wise subtraction, and `[2]` takes the second element:

```julia
julia> findmax(r) .- (2,3)
(-1.253323030732744, 4)

julia> findmax(r)[2]
7

```

ps. It would be easier to read if you could [quote your code](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530).

---

_[View the full topic](https://discourse.julialang.org/t/help-with-two-julia-lines-of-code-whose-syntax-is-unclear-to-me/21769)._
