Files
SjkScripts/Functional/Tuple.cs
ronnie d0968e1586
All checks were successful
Build NuGet / build (push) Successful in 49s
wertgohiuhiaserguioshaegrhioperg
2026-04-08 11:00:51 -04:00

10 lines
410 B
C#

namespace SJK.Functional;
public static class TupleExtensions
{
public static (T1, T2) ToTuple<T1, T2>(this T1 first, T2 second) => (first, second);
public static (T1, T2, T3) ToTuple<T1, T2, T3>(this T1 first, T2 second, T3 third) => (first, second, third);
public static (T1, T2, T3, T4) ToTuple<T1, T2, T3, T4>(this T1 first, T2 second, T3 third, T4 forth) => (first, second, third, forth);
}