Skip to content

Commit 204652a

Browse files
committed
Add eachindex to README
1 parent 6af2f38 commit 204652a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ Currently, the `@compat` macro supports the following syntaxes:
5050

5151
* For all unsigned integer types to their equivalents with uppercase `I`. [#8907](https://github.com/JuliaLang/julia/pull/8907)
5252

53+
## New functions
54+
55+
* `eachindex`, as in `for i in eachindex(A)`, can be used in julia 0.3. This is the recommended way to iterate over each index in an `AbstractArray`. On julia 0.3 `eachindex` just returns `1:length(A)`, but in julia 0.4 it can return a more sophisticated iterator.
56+
5357
## Renamed functions
5458

5559
* `itrunc`, `iround`, `iceil`, `ifloor` are now accessed via `trunc(T, x)`, etc. [#9133](https://github.com/JuliaLang/julia/pull/9133)

0 commit comments

Comments
 (0)