MCPcopy
hub / github.com/Effect-TS/effect / Tuple

Function Tuple

packages/effect/src/Schema.ts:1557–1561  ·  view source on GitHub ↗
(...args: ReadonlyArray<any>)

Source from the content-addressed store, hash-verified

1555export function Tuple<Fst extends Schema.Any, Snd extends Schema.Any>(fst: Fst, snd: Snd): Tuple2<Fst, Snd>
1556export function Tuple<Elements extends TupleType.Elements>(...elements: Elements): Tuple<Elements>
1557export function Tuple(...args: ReadonlyArray<any>): any {
1558 return Array.isArray(args[0])
1559 ? makeTupleTypeClass(args[0], args.slice(1))
1560 : makeTupleTypeClass(args, [])
1561}
1562
1563/**
1564 * @category api interface

Callers 5

TemplateLiteralParserFunction · 0.70
Schema.tsFile · 0.70
mapFromSelf_Function · 0.70
ReadonlyMapFunction · 0.70
mapFunction · 0.70

Calls 1

makeTupleTypeClassFunction · 0.85

Tested by

no test coverage detected