2022-08-30 19:36:44 +00:00
|
|
|
import Returns from '../core/Returns.mjs'
|
|
|
|
|
2022-08-05 12:48:57 +00:00
|
|
|
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.
|
|
|
|
*/
|
2022-08-30 19:36:44 +00:00
|
|
|
export const tuple = {
|
2022-12-01 17:47:20 +00:00
|
|
|
'...T': ({T}) => Returns(`Tuple<${T}>`, args => ({elts: args}))
|
2022-08-30 19:36:44 +00:00
|
|
|
}
|