Glen Whitney
27bf23db54
This adds the target initial definition of a homogeneous Tuple<T> type, and just enough processing that the type can be defined and non-template methods that deal with the generic base type Tuple can be called. Still has no actual template instantiation.
7 lines
218 B
JavaScript
7 lines
218 B
JavaScript
export {Tuple} from './Types/Tuple.mjs'
|
|
|
|
/* The purpose of the template argument is to ensure that all of the args
|
|
* are convertible to the same type.
|
|
*/
|
|
export const tuple = {'...any': () => args => ({elts: args})}
|