Skip to content

Commit

Permalink
Simplified and corrected DimArray generator construction examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kapple19 committed Nov 9, 2024
1 parent e739915 commit a8bee08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/dimarrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ fill(7, X(5), Y(10))
fill(7, X(5), Y(10); name=:fill, metadata=Dict())
```

== generator expressions
== generator construction

```@ansi dimarray
[(x, y) for x in X(10:10:50), y in Y(0.0:0.1:1.0)]
DimArray((x, y) for x in X(10:10:50), y in Y(0.0:0.1:1.0))
DimArray((x, y) for x in X(10:10:50), y in Y(0.0:0.1:1.0); name = :Value)
[x + y for x in X(1:5), y in Y(1:10)]
DimArray(x + y for x in X(1:5), y in Y(1:10))
DimArray(x + y for x in X(1:5), y in Y(1:10); name=:sum, metadata=Dict())
```

:::
Expand Down

0 comments on commit a8bee08

Please sign in to comment.