Skip to content

Commit 00fd5f8

Browse files
committed
use broadcast
1 parent df35a5f commit 00fd5f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NDTensors/src/lib/SymmetrySectors/src/sector_product.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ end
246246
SectorProduct(; kws...) = SectorProduct((; kws...))
247247

248248
function SectorProduct(pairs::Pair...)
249-
keys = ntuple(n -> Symbol(pairs[n][1]), length(pairs))
250-
vals = ntuple(n -> pairs[n][2], length(pairs))
249+
keys = Symbol.(first.(pairs))
250+
vals = last.(pairs)
251251
return SectorProduct(NamedTuple{keys}(vals))
252252
end
253253

0 commit comments

Comments
 (0)