( key: LazyArbitrary<K>, value: LazyArbitrary<V>, ctx: ArbitraryGenerationContext )
| 7564 | } |
| 7565 | |
| 7566 | const mapArbitrary = <K, V>( |
| 7567 | key: LazyArbitrary<K>, |
| 7568 | value: LazyArbitrary<V>, |
| 7569 | ctx: ArbitraryGenerationContext |
| 7570 | ): LazyArbitrary<Map<K, V>> => { |
| 7571 | return (fc) => { |
| 7572 | const items = fc.array(fc.tuple(key(fc), value(fc))) |
| 7573 | return (ctx.depthIdentifier !== undefined ? fc.oneof(ctx, fc.constant([]), items) : items).map((as) => new Map(as)) |
| 7574 | } |
| 7575 | } |
| 7576 | |
| 7577 | const readonlyMapPretty = <K, V>( |
| 7578 | key: pretty_.Pretty<K>, |