Add `Set\Tuple`
Closed this issue · 0 comments
Baptouuuu commented
Sometimes we want to group values from Set
s inside a tuple like array. Currently the only solution is to use Set\Composite
with the callable always being static fn(...$args) => $args
.
Set\Tuple
would be a shortcut for this use case.
The signature would be Tuple::of(Set, Set, ...Set): Set<list<mixed>>