Skip to content

Commit d8ee3f6

Browse files
authored
Merge pull request #64 from Tokazama/master
V2.12.0 + known_length in README
2 parents d7a00ad + a869288 commit d8ee3f6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ArrayInterface"
22
uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
3-
version = "2.11.0"
3+
version = "2.12.0"
44

55
[deps]
66
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

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)