(values: Iterable<V>)
| 244 | * @since 2.0.0 |
| 245 | */ |
| 246 | export const fromIterable = <V>(values: Iterable<V>): Effect.Effect<TxHashSet<V>> => |
| 247 | Effect.gen(function*() { |
| 248 | const hashSet = HashSet.fromIterable(values) |
| 249 | const ref = yield* TxRef.make(hashSet) |
| 250 | return makeTxHashSet(ref) |
| 251 | }) |
| 252 | |
| 253 | /** |
| 254 | * Creates a TxHashSet from an existing HashSet. |
nothing calls this directly
no test coverage detected