Skip to content

Commit a869288

Browse files
committed
Add known_length to README
1 parent 1cd4f0c commit a869288

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ If `step` of instances of type `T` are known at compile time, return that step.
129129
Otherwise, returns `nothing`. For example, `known_step(UnitRange{Int})` returns
130130
`one(Int)`.
131131

132+
## known_length(::Type{T})
133+
134+
If `length` of an instance of type `T` is known at compile time, return it.
135+
Otherwise, return `nothing`.
136+
132137
# List of things to add
133138

134139
- https://github.com/JuliaLang/julia/issues/22216

0 commit comments

Comments
 (0)