import { InternalTArray } from "@effect/core/stm/TArray/operations/_internal/InternalTArray"
/**
* Makes a new `TArray` initialized with provided `Collection`.
*
* @tsplus static effect/core/stm/TArray.Ops from
*/
export function from(it: Collection): STM> {
return STM.forEach(it, (a) => TRef.make(a)).map((as) => new InternalTArray(as))
}