Javascript – How do I assign a type to an array of tuples whose entries may vary between tuples?
Say I have function foo(args) {...} where args is an array of 2-tuples such that the entries within the tuple are the same type (i.e. [T,T]), but the entries across tuples may vary arbitrarily (i.e. [[T,T],[U,U],[V,V]]). For example: foo([ [1,…