"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.replicate_ = exports.replicate = void 0;
// ets_tracing: off
const Array_1 = require("../Collections/Immutable/Array");
/**
 * Replicates the given effect `n` times.
 *
 * @ets_data_first replicate_
 */
function replicate(n, __trace) {
    return (self) => replicate_(self, n);
}
exports.replicate = replicate;
/**
 * Replicates the given effect `n` times.
 */
function replicate_(self, n) {
    return (0, Array_1.range)(0, n).map(() => self);
}
exports.replicate_ = replicate_;
//# sourceMappingURL=replicate.js.map