We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df35a5f commit 00fd5f8Copy full SHA for 00fd5f8
NDTensors/src/lib/SymmetrySectors/src/sector_product.jl
@@ -246,8 +246,8 @@ end
246
SectorProduct(; kws...) = SectorProduct((; kws...))
247
248
function SectorProduct(pairs::Pair...)
249
- keys = ntuple(n -> Symbol(pairs[n][1]), length(pairs))
250
- vals = ntuple(n -> pairs[n][2], length(pairs))
+ keys = Symbol.(first.(pairs))
+ vals = last.(pairs)
251
return SectorProduct(NamedTuple{keys}(vals))
252
end
253
0 commit comments