lecture-source-jl icon indicating copy to clipboard operation
lecture-source-jl copied to clipboard

Use new `eachrow` and `eachcol`

Open arnavs opened this issue 7 years ago • 1 comments

Now that https://github.com/JuliaLang/julia/pull/29749 has been merged, we can use for row in eachrow(M) and for col in eachcol(M) etc., instead of for i in axes(M, 2), M[:, i] or whatever.

Will need to get this pre-compatted first though, unless we use Julia 1.1

arnavs avatar Dec 03 '18 18:12 arnavs

Also eachslice(M, dims) for arbitrary sizes.

arnavs avatar Dec 03 '18 18:12 arnavs