Innmind/BlackBox

Add `Set\Tuple`

Closed this issue · 0 comments

Sometimes we want to group values from Sets 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>>