Skip to content

Commit a84dd4e

Browse files
committed
also allow heterogenous properties
1 parent 15f315c commit a84dd4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ struct Region{V}
225225
area::V
226226
end
227227

228-
s1 = MyType(Location(1, 0), (place = "Delhi"))
229-
s2 = MyType(Location(2.5, 1.9), (place = "Mumbai"))
230-
s3 = MyType(Region([Location(1, 0), Location(2.5, 1.9)]), (place = "North India"))
228+
s1 = MyType(Location(1, 0), place = "Delhi", rainfall = 200)
229+
s2 = MyType(Location(2.5, 1.9), place = "Mumbai", rainfall = 1010)
230+
s3 = MyType(Region([Location(1, 0), Location(2.5, 1.9)]), place = "North India", rainfall = missing)
231231

232232
s = [s1, s2, s3]
233233
# Now if we try to do StructArray(s)

0 commit comments

Comments
 (0)