{
  "id": "@typed/fx#Fx.slice",
  "canonicalId": "@typed/fx/Fx#slice",
  "symbol": {
    "id": "@typed/fx#Fx.slice",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Fx.slice",
    "kind": "constant",
    "signatures": [
      "export declare const slice: {\n    (bounds: Bounds): <A, E, R>(fx: Fx<A, E, R>) => Fx<A, E, R>;\n    <A, E, R>(fx: Fx<A, E, R>, bounds: Bounds): Fx<A, E, R>;\n};"
    ],
    "summary": "Slices an Fx by skipping a number of elements and then taking a number of elements.",
    "sections": {
      "Why": "`slice` expresses prefix omission and bounded output in one counter. It retains source order,\nemits at most `take` values after `skip`, and completes early once that bound is reached.",
      "Ownership and lifetime": "Counters are local to one run. Early completion stops upstream work; otherwise source failure,\nservices, and consumer interruption are forwarded."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\n\nconst page = Fx.fromIterable([1, 2, 3, 4]).pipe(Fx.slice({ skip: 1, take: 2 }))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/slice.ts",
      "line": 91
    },
    "since": "1.0.0",
    "category": "Selecting values"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Fx.slice",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Fx",
    "qualifiedName": "Fx.slice",
    "declarationKey": "declaration:1a20eb508b380634f185def5",
    "family": "variable",
    "signatures": [
      "export declare const slice: {\n    (bounds: Bounds): <A, E, R>(fx: Fx<A, E, R>) => Fx<A, E, R>;\n    <A, E, R>(fx: Fx<A, E, R>, bounds: Bounds): Fx<A, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/slice.ts",
        "start": {
          "line": 91,
          "column": 14
        },
        "end": {
          "line": 97,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/slice.ts",
        "start": {
          "line": 92,
          "column": 3
        },
        "end": {
          "line": 92,
          "column": 63
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/slice.ts",
        "start": {
          "line": 94,
          "column": 3
        },
        "end": {
          "line": 94,
          "column": 59
        }
      }
    ],
    "aliases": [
      "@typed/fx/Fx#slice"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Fx",
    "static": false,
    "importedFrom": "declaration:1a20eb508b380634f185def5"
  },
  "declaration": {
    "declarationKey": "declaration:1a20eb508b380634f185def5",
    "name": "slice",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const slice: {\n    (bounds: Bounds): <A, E, R>(fx: Fx<A, E, R>) => Fx<A, E, R>;\n    <A, E, R>(fx: Fx<A, E, R>, bounds: Bounds): Fx<A, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/slice.ts",
            "start": {
              "line": 91,
              "column": 14
            },
            "end": {
              "line": 97,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "(bounds: Bounds): <A, E, R>(fx: Fx<A, E, R>) => Fx<A, E, R>;",
          "<A, E, R>(fx: Fx<A, E, R>, bounds: Bounds): Fx<A, E, R>;"
        ],
        "typeParameters": [
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/slice.ts",
            "start": {
              "line": 92,
              "column": 3
            },
            "end": {
              "line": 92,
              "column": 63
            }
          },
          {
            "file": "packages/fx/src/Fx/combinators/slice.ts",
            "start": {
              "line": 94,
              "column": 3
            },
            "end": {
              "line": 94,
              "column": 59
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const slice: {\n    (bounds: Bounds): <A, E, R>(fx: Fx<A, E, R>) => Fx<A, E, R>;\n    <A, E, R>(fx: Fx<A, E, R>, bounds: Bounds): Fx<A, E, R>;\n};"
    ],
    "typeParameters": [
      "A",
      "E",
      "R"
    ],
    "summary": "Slices an Fx by skipping a number of elements and then taking a number of elements.",
    "sections": {
      "Why": "`slice` expresses prefix omission and bounded output in one counter. It retains source order,\nemits at most `take` values after `skip`, and completes early once that bound is reached.",
      "Ownership and lifetime": "Counters are local to one run. Early completion stops upstream work; otherwise source failure,\nservices, and consumer interruption are forwarded."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\n\nconst page = Fx.fromIterable([1, 2, 3, 4]).pipe(Fx.slice({ skip: 1, take: 2 }))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/slice.ts",
        "start": {
          "line": 91,
          "column": 14
        },
        "end": {
          "line": 97,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/slice.ts",
        "start": {
          "line": 92,
          "column": 3
        },
        "end": {
          "line": 92,
          "column": 63
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/slice.ts",
        "start": {
          "line": 94,
          "column": 3
        },
        "end": {
          "line": 94,
          "column": 59
        }
      }
    ],
    "since": "1.0.0",
    "category": "Selecting values"
  }
}
