Skip to content

Commit

Permalink
Update ValueTupleExtensions.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
kochounoyume authored Dec 2, 2024
1 parent a71b68e commit e1c65b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Packages/MinimalUtility/Runtime/ValueTupleExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public static class ValueTupleExtensions
/// <param name="tuple">対象の<see cref="ValueTuple{T1, T2, T3, T4, T5, T6, T7}"/>.</param>
/// <typeparam name="T">要素の型.</typeparam>
/// <returns>要素を列挙する<see cref="Enumerator{T, TTuple}"/>.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Enumerator<T, (T, T, T, T, T, T, T)> GetEnumerator<T>(in this (T, T, T, T, T, T, T) tuple)
{
return new (tuple, 7, static (t, i) => i switch
Expand Down Expand Up @@ -150,4 +151,4 @@ internal Enumerator(in TTuple tuple, int length, Func<TTuple, int, T> current)
public bool MoveNext() => index < length && ++index < length;
}
}
}
}

0 comments on commit e1c65b6

Please sign in to comment.