Skip to content

Commit 2684005

Browse files
committed
comment on map use
1 parent b94f4e8 commit 2684005

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

NDTensors/src/lib/Sectors/src/category_product.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ function quantum_dimension(::NonGroupCategory, s::CategoryProduct)
3030
return prod(map(quantum_dimension, categories(s)))
3131
end
3232

33+
# use map instead of broadcast to support both Tuple and NamedTuple
3334
GradedAxes.dual(s::CategoryProduct) = CategoryProduct(map(dual, categories(s)))
3435

3536
trivial(type::Type{<:CategoryProduct}) = sector(categories_trivial(categories_type(type)))

0 commit comments

Comments
 (0)