import * as T from "../_internal/effect";
import { unfoldM } from "./unfoldM";
/**
 * Creates a stream by peeling off the "layers" of a value of type `S`
 */

export function unfold(s, f) {
  return unfoldM(s, s => T.succeed(f(s)));
}
//# sourceMappingURL=unfold.js.map