# Function loop that deals with vectors and single numbers. setindex! when i==1

**URL:** https://discourse.julialang.org/t/function-loop-that-deals-with-vectors-and-single-numbers-setindex-when-i-1/17709
**Category:** General Usage
**Created:** [November 19, 2018, 10:35am UTC](https://discourse.julialang.org/t/function-loop-that-deals-with-vectors-and-single-numbers-setindex-when-i-1/17709 "2018-11-19T10:35:23Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [November 19, 2018, 10:52am UTC](https://discourse.julialang.org/t/function-loop-that-deals-with-vectors-and-single-numbers-setindex-when-i-1/17709/2 "2018-11-19T10:52:12Z")

</div>

Please [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/function-loop-that-deals-with-vectors-and-single-numbers-setindex-when-i-1/17709)._
