Skip to content

Commit

Permalink
Merge pull request #18 from ludvigk/patch-1
Browse files Browse the repository at this point in the history
Remove type piracy
  • Loading branch information
findmyway authored Sep 24, 2024
2 parents 4fc19b0 + 8db7260 commit d1f52a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/product.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ end
Base.eltype(space::TupleProduct) = Tuple{map(eltype, subspaces(space))...}

Base.length(space::TupleProduct) = mapreduce(length, *, subspaces(space))
Base.iterate(space, args...) = iterate(Iterators.product(subspaces(space)...), args...)
Base.iterate(space::TupleProduct, args...) = iterate(Iterators.product(subspaces(space)...), args...)

function bounds(s::TupleProduct)
bds = map(bounds, subspaces(s))
Expand Down

0 comments on commit d1f52a5

Please sign in to comment.