We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd75344 commit f9a3f11Copy full SHA for f9a3f11
1 file changed
src/source_iterable.jl
@@ -3,7 +3,9 @@ struct EnumerableIterable{T,S} <: Enumerable
3
end
4
5
function query(source)
6
- IteratorInterfaceExtensions.isiterable(source) || error()
+ if !IteratorInterfaceExtensions.isiterable(source)
7
+ error("$(typeof(source)) does not meet the IteratorInterfaceExtensions.jl API")
8
+ end
9
typed_source = IteratorInterfaceExtensions.getiterator(source)
10
T = eltype(typed_source)
11
S = typeof(typed_source)
0 commit comments