# Broadcasting assignment idea

**URL:** <https://discourse.julialang.org/t/broadcasting-assignment-idea/6918>\
**Category:** Performance\
**Tags:** broadcast, development\
**Created:** [November 6, 2017, 9:34pm UTC](https://discourse.julialang.org/t/broadcasting-assignment-idea/6918 "2017-11-06T21:34:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nosferican](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nosferican/32/9275_2.png) [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Post date:** [November 6, 2017, 9:34pm UTC](https://discourse.julialang.org/t/broadcasting-assignment-idea/6918/1 "2017-11-06T21:34:06Z")

</div>

Given `A::AbstractMatrix` and `b::AbstractVector` one can broadcast assignments like:  
`A[:,cols] .= b.'`  
where cols may be a container of valid indices… However, I would like to broadcast assignment where `cols` is, WLOG, `Vector{Vector{Int64}}`. The idea is that broadcasting the assignment recognizes that it should broadcast the rows, but iterate through each of the elements of `cols`. Would that be nice feature to implement?
