From a8bee083f4e69e16dce6a09d020aaa6292ea574d Mon Sep 17 00:00:00 2001 From: Aaron Kaw Date: Sat, 9 Nov 2024 21:50:18 +1100 Subject: [PATCH] Simplified and corrected DimArray generator construction examples --- docs/src/dimarrays.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/dimarrays.md b/docs/src/dimarrays.md index 9f8c66412..0a70ae212 100644 --- a/docs/src/dimarrays.md +++ b/docs/src/dimarrays.md @@ -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()) ``` :::