(item: LazyArbitrary<A>, ctx: ArbitraryGenerationContext)
| 7768 | |
| 7769 | const setArbitrary = |
| 7770 | <A>(item: LazyArbitrary<A>, ctx: ArbitraryGenerationContext): LazyArbitrary<ReadonlySet<A>> => (fc) => { |
| 7771 | const items = fc.array(item(fc)) |
| 7772 | return (ctx.depthIdentifier !== undefined ? fc.oneof(ctx, fc.constant([]), items) : items).map((as) => new Set(as)) |
| 7773 | } |
| 7774 | |
| 7775 | const readonlySetPretty = <A>(item: pretty_.Pretty<A>): pretty_.Pretty<ReadonlySet<A>> => (set) => |
| 7776 | `new Set([${Array.from(set.values()).map((a) => item(a)).join(", ")}])` |