11 lines
291 B
JavaScript
11 lines
291 B
JavaScript
import Returns from '../core/Returns.mjs'
|
|
|
|
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 = {
|
|
'...T': ({T}) => Returns(`Tuple<${T}>`, args => ({elts: args}))
|
|
}
|