Skip to content

Commit

Permalink
Document statefulnes of CellIterator, closes #267 (#730)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdAlazezAhmed authored May 26, 2023
1 parent e78ab28 commit 0ec0e49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/iterators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ for idx in cellset
# ...
end
```
!!! warning
`CellIterator` is stateful and should not be used for things other than `for`-looping
(e.g. broadcasting over, or collecting the iterator may yield unexpected results).
"""
struct CellIterator{CC<:CellCache, IC<:IntegerCollection}
cc::CC
Expand Down

0 comments on commit 0ec0e49

Please sign in to comment.