import * as tsplus_module_1 from "@tsplus/stdlib/collections/List/empty";
import * as tsplus_module_2 from "@tsplus/stdlib/collections/List/prepend";
import * as tsplus_module_3 from "@tsplus/stdlib/collections/List/from";
import * as tsplus_module_4 from "@effect/core/stm/TMap/operations/fold";
/**
 * Collects all bindings into a list.
 *
 * @tsplus getter ets/TMap toList
 */

export function toList(self) {
  return tsplus_module_4.fold_(self, tsplus_module_1.empty(), (acc, kv) => tsplus_module_3.from(tsplus_module_2.prepend_(acc, kv)));
}
//# sourceMappingURL=toList.mjs.map