@@ -135,7 +135,7 @@ Base.conj(c::U1Irrep) = U1Irrep(-c.charge)
135135⊗ (c1:: U1Irrep , c2:: U1Irrep ) = (U1Irrep (c1. charge + c2. charge),)
136136
137137Base. IteratorSize (:: Type{SectorValues{U1Irrep}} ) = IsInfinite ()
138- function Base. iterate (:: SectorValues{U1Irrep} , i= 0 )
138+ function Base. iterate (:: SectorValues{U1Irrep} , i:: Int = 0 )
139139 return i <= 0 ? (U1Irrep (half (i)), (- i + 1 )) : (U1Irrep (half (i)), - i)
140140end
141141function Base. getindex (:: SectorValues{U1Irrep} , i:: Int )
@@ -188,7 +188,7 @@ Base.conj(s::SU2Irrep) = s
188188⊗ (s1:: SU2Irrep , s2:: SU2Irrep ) = SectorSet {SU2Irrep} (abs (s1. j - s2. j): (s1. j + s2. j))
189189
190190Base. IteratorSize (:: Type{SectorValues{SU2Irrep}} ) = IsInfinite ()
191- Base. iterate (:: SectorValues{SU2Irrep} , i= 0 ) = (SU2Irrep (half (i)), i + 1 )
191+ Base. iterate (:: SectorValues{SU2Irrep} , i:: Int = 0 ) = (SU2Irrep (half (i)), i + 1 )
192192function Base. getindex (:: SectorValues{SU2Irrep} , i:: Int )
193193 return 1 <= i ? SU2Irrep (half (i - 1 )) : throw (BoundsError (values (SU2Irrep), i))
194194end
@@ -269,7 +269,7 @@ Base.getindex(::IrrepTable, ::Type{CU₁}) = CU1Irrep
269269Base. convert (:: Type{CU1Irrep} , (j, s):: Tuple{Real,Integer} ) = CU1Irrep (j, s)
270270
271271Base. IteratorSize (:: Type{SectorValues{CU1Irrep}} ) = IsInfinite ()
272- function Base. iterate (:: SectorValues{CU1Irrep} , state= (0 , 0 ))
272+ function Base. iterate (:: SectorValues{CU1Irrep} , state:: Tuple{Int,Int} = (0 , 0 ))
273273 j, s = state
274274 if iszero (j) && s == 0
275275 return CU1Irrep (j, s), (j, 1 )
0 commit comments