Snippets tagged tuples

  • Overloads to get tuple items

    The static representations, unlike the encoded System.Tuple<_,...,_> forms, of tuples do not have ItemX properties and therefore static structural constraints cannot be used to obtain the nth item of a tuple. Here we give a utility with overloads for obtaining the nth item of a tuple. However, type inference is undermined in the presence of overloads

    2 people like this

    Posted: 6 years ago by Stephen Swensen