Skip to content

Commit

Permalink
Merge pull request #44 from cossio/patch-1
Browse files Browse the repository at this point in the history
Warn about 'end' issue in Readme
  • Loading branch information
ChrisRackauckas authored Jun 11, 2022
2 parents 3c1816c + 0e5eee8 commit 387bfab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ instances of `..` afterwards are treated simply as slices. Usually, you
should only use one instance of `..` in an indexing expression to avoid
possible confusion.

**Warning:** `..` does not work when indexing also with `end` or `begin`.
For example, `A = randn(2,3,4); A[.., 1:end]` will not give the intended
result. This is a known limitation, and is not likely to be fixed until
some necessary changes in the Julia language itself are implemented. See
https://github.com/ChrisRackauckas/EllipsisNotation.jl/issues/19
for more details.

# Acknowledgements

Expand Down

0 comments on commit 387bfab

Please sign in to comment.