{
  "id": "@typed/fx/Fx#fromIterable",
  "canonicalId": "@typed/fx/Fx#fromIterable",
  "symbol": {
    "id": "@typed/fx/Fx#fromIterable",
    "packageName": "@typed/fx",
    "moduleName": "Fx",
    "exportName": "fromIterable",
    "kind": "constant",
    "signatures": [
      "export declare const fromIterable: <A>(iterable: Iterable<A>) => Fx<A>;"
    ],
    "summary": "Creates an Fx from an Iterable.\nEmits each value from the iterable in order and then completes.",
    "sections": {
      "Why": "Finite synchronous collections can participate in push composition without\nchanging their iteration order or introducing a separate collection protocol.",
      "Ownership and lifetime": "Construction stores the iterable but does not iterate it. Each run obtains a fresh\niterator, offers values sequentially to the sink, and completes after iteration.\nInterruption stops further iteration. No child fiber or buffer is created."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport { collectAll, fromIterable } from \"@typed/fx/Fx\"\n\nconst program = collectAll(fromIterable(new Set([1, 2, 3]))).pipe(\n  Effect.map((values) => values.join(\",\"))\n)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/constructors/fromIterable.ts",
      "line": 36
    },
    "since": "1.0.0",
    "category": "Value sources"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/Fx#fromIterable",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": "Fx",
    "consumerSpecifier": "@typed/fx/Fx",
    "exportName": "fromIterable",
    "qualifiedName": "fromIterable",
    "declarationKey": "declaration:4c27a42e7dd909a7f926cf19",
    "family": "variable",
    "signatures": [
      "export declare const fromIterable: <A>(iterable: Iterable<A>) => Fx<A>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/constructors/fromIterable.ts",
        "start": {
          "line": 36,
          "column": 14
        },
        "end": {
          "line": 37,
          "column": 74
        }
      }
    ],
    "aliases": [
      "@typed/fx#Fx.fromIterable"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:4c27a42e7dd909a7f926cf19",
    "name": "fromIterable",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const fromIterable: <A>(iterable: Iterable<A>) => Fx<A>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/constructors/fromIterable.ts",
            "start": {
              "line": 36,
              "column": 14
            },
            "end": {
              "line": 37,
              "column": 74
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const fromIterable: <A>(iterable: Iterable<A>) => Fx<A>;"
    ],
    "typeParameters": [],
    "summary": "Creates an Fx from an Iterable.\nEmits each value from the iterable in order and then completes.",
    "sections": {
      "Why": "Finite synchronous collections can participate in push composition without\nchanging their iteration order or introducing a separate collection protocol.",
      "Ownership and lifetime": "Construction stores the iterable but does not iterate it. Each run obtains a fresh\niterator, offers values sequentially to the sink, and completes after iteration.\nInterruption stops further iteration. No child fiber or buffer is created."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport { collectAll, fromIterable } from \"@typed/fx/Fx\"\n\nconst program = collectAll(fromIterable(new Set([1, 2, 3]))).pipe(\n  Effect.map((values) => values.join(\",\"))\n)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/constructors/fromIterable.ts",
        "start": {
          "line": 36,
          "column": 14
        },
        "end": {
          "line": 37,
          "column": 74
        }
      }
    ],
    "since": "1.0.0",
    "category": "Value sources"
  }
}
