Closed GRarer closed 2 years ago
I'm a fan of unionMany
in place of multiUnion
. I'm not sure what to call literalUnion
in keeping with that convention, though; literalUnionMany
?
Thanks! I'll probably rename all of the union combinators soon and maybe namespace them (union
and unionOf
were truly terrible names), but this is great for now :)
Adds two new schemas for unions:
literalUnion
for creating a union of any number of literal values, andmultiUnion
for constructing a union from more than two trivial schemas (this previously required nesting theunion
function).multiUnion
is a bad placeholder name and I welcome suggestions about what that function should be called.