Open xgrommx opened 8 years ago
Hello @paldepind How can I implement Product type in union-type? Smth like var Tuple3 = daggy.tagged('x', 'y', 'z') in daggy.
var Tuple3 = daggy.tagged('x', 'y', 'z')
@xgrommx years later…
There is no distinct product type, but you can fake it with a sum of only one tag.
const Tuple3 = Type({ Tuple3: [Number, Number, Number] }) const t3 = Tuple3.Tuple3(1, 2, 3)
Hello @paldepind How can I implement Product type in union-type? Smth like
var Tuple3 = daggy.tagged('x', 'y', 'z')
in daggy.