import * as tsplus_module_1 from "@effect/core/stm/TRef/operations/make";
import * as tsplus_module_2 from "@effect/core/stm/STM/operations/forEach";
import * as tsplus_module_3 from "@effect/core/stm/STM/operations/map";
import { InternalTArray } from "@effect/core/stm/TArray/operations/_internal/InternalTArray";
/**
 * Makes a new `TArray` initialized with provided `Collection`.
 *
 * @tsplus static ets/TArray/Ops from
 */

export function from(it) {
  return tsplus_module_3.map_(tsplus_module_2.forEach(it, a => tsplus_module_1.make(() => a)), as => new InternalTArray(as));
}
//# sourceMappingURL=from.mjs.map