You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/pages/api.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,10 @@ Use of `similar` will fall back to a mutable container, such as a `MVector`
120
120
static size (or else a dynamically sized `Array` will be generated when
121
121
specifying the size as plain integers).
122
122
123
+
### Collecting directly into static arrays
124
+
125
+
You can collect [iterators](https://docs.julialang.org/en/v1/manual/interfaces/#man-interface-iteration) into static arrays directly with [`StaticArrays.sacollect`](@ref). The size needs to be specified, but the element type is optional.
126
+
123
127
### Mutable arrays: `MVector`, `MMatrix` and `MArray`
124
128
125
129
These statically sized arrays are identical to the above, but are defined as
0 commit comments