Skip to content

Commit 884b943

Browse files
authored
Document sacollect. (#884)
1 parent 1c72f5c commit 884b943

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/src/pages/api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ Use of `similar` will fall back to a mutable container, such as a `MVector`
120120
static size (or else a dynamically sized `Array` will be generated when
121121
specifying the size as plain integers).
122122

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+
123127
### Mutable arrays: `MVector`, `MMatrix` and `MArray`
124128

125129
These statically sized arrays are identical to the above, but are defined as

0 commit comments

Comments
 (0)