{
  "id": "@typed/fx/Fx#compact",
  "canonicalId": "@typed/fx/Fx#compact",
  "symbol": {
    "id": "@typed/fx/Fx#compact",
    "packageName": "@typed/fx",
    "moduleName": "Fx",
    "exportName": "compact",
    "kind": "constant",
    "signatures": [
      "export declare const compact: <A, E, R>(self: Fx<Option.Option<A>, E, R>) => Fx<A, E, R>;"
    ],
    "summary": "Compacts an Fx of Options, discarding `None` values and unwrapping `Some` values.",
    "sections": {
      "Why": "`compact` turns optional pushed values into ordinary pushed values without inventing a sentinel.\nIt emits once for each `Some`, never for `None`, and preserves the order of retained values.",
      "Ownership and lifetime": "This is a stateless sink transformation. It acquires no resources and forwards source failures,\nservices, completion, and interruption unchanged."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Option } from \"effect\"\nimport { Fx } from \"@typed/fx\"\n\nconst present = Fx.fromIterable([Option.some(1), Option.none(), Option.some(2)]).pipe(Fx.compact)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/compact.ts",
      "line": 31
    },
    "since": "1.0.0",
    "category": "Selecting values"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/Fx#compact",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "Fx",
    "consumerSpecifier": "@typed/fx/Fx",
    "exportName": "compact",
    "qualifiedName": "compact",
    "declarationKey": "declaration:94144d154aec3a4785167d61",
    "family": "variable",
    "signatures": [
      "export declare const compact: <A, E, R>(self: Fx<Option.Option<A>, E, R>) => Fx<A, E, R>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/compact.ts",
        "start": {
          "line": 31,
          "column": 14
        },
        "end": {
          "line": 32,
          "column": 60
        }
      }
    ],
    "aliases": [
      "@typed/fx#Fx.compact"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:94144d154aec3a4785167d61",
    "name": "compact",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const compact: <A, E, R>(self: Fx<Option.Option<A>, E, R>) => Fx<A, E, R>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/compact.ts",
            "start": {
              "line": 31,
              "column": 14
            },
            "end": {
              "line": 32,
              "column": 60
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const compact: <A, E, R>(self: Fx<Option.Option<A>, E, R>) => Fx<A, E, R>;"
    ],
    "typeParameters": [],
    "summary": "Compacts an Fx of Options, discarding `None` values and unwrapping `Some` values.",
    "sections": {
      "Why": "`compact` turns optional pushed values into ordinary pushed values without inventing a sentinel.\nIt emits once for each `Some`, never for `None`, and preserves the order of retained values.",
      "Ownership and lifetime": "This is a stateless sink transformation. It acquires no resources and forwards source failures,\nservices, completion, and interruption unchanged."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Option } from \"effect\"\nimport { Fx } from \"@typed/fx\"\n\nconst present = Fx.fromIterable([Option.some(1), Option.none(), Option.some(2)]).pipe(Fx.compact)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/compact.ts",
        "start": {
          "line": 31,
          "column": 14
        },
        "end": {
          "line": 32,
          "column": 60
        }
      }
    ],
    "since": "1.0.0",
    "category": "Selecting values"
  }
}
