{
  "id": "@typed/fx/Fx#skipRepeatsWith",
  "canonicalId": "@typed/fx/Fx#skipRepeatsWith",
  "symbol": {
    "id": "@typed/fx/Fx#skipRepeatsWith",
    "packageName": "@typed/fx",
    "moduleName": "Fx",
    "exportName": "skipRepeatsWith",
    "kind": "constant",
    "signatures": [
      "export declare const skipRepeatsWith: <A>(Eq: Equivalence.Equivalence<A>) => <E, R>(fx: Fx<A, E, R>) => Fx<A, E, R>;"
    ],
    "summary": "Drops elements that are equal to the previous element using a custom equivalence function.",
    "sections": {
      "Why": "`skipRepeatsWith` defines consecutive equality for values that need domain-specific comparison.\nIt compares against the last emitted value, emits the first value, and otherwise preserves order.",
      "Ownership and lifetime": "The per-run previous-value state is updated atomically and released when observation ends. The\npure equivalence adds no failures or services and acquires no resource."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\n\nconst byId = Fx.skipRepeatsWith<{ id: number }>((a, b) => a.id === b.id)\nconst changes = Fx.fromIterable([{ id: 1 }, { id: 1 }, { id: 2 }]).pipe(byId)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/skipRepeatsWith.ts",
      "line": 35
    },
    "since": "1.0.0",
    "category": "Selecting values"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/Fx#skipRepeatsWith",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": "Fx",
    "consumerSpecifier": "@typed/fx/Fx",
    "exportName": "skipRepeatsWith",
    "qualifiedName": "skipRepeatsWith",
    "declarationKey": "declaration:47151f0dcbc01043adbf8185",
    "family": "variable",
    "signatures": [
      "export declare const skipRepeatsWith: <A>(Eq: Equivalence.Equivalence<A>) => <E, R>(fx: Fx<A, E, R>) => Fx<A, E, R>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/skipRepeatsWith.ts",
        "start": {
          "line": 35,
          "column": 14
        },
        "end": {
          "line": 57,
          "column": 6
        }
      }
    ],
    "aliases": [
      "@typed/fx#Fx.skipRepeatsWith"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:47151f0dcbc01043adbf8185",
    "name": "skipRepeatsWith",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const skipRepeatsWith: <A>(Eq: Equivalence.Equivalence<A>) => <E, R>(fx: Fx<A, E, R>) => Fx<A, E, R>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/skipRepeatsWith.ts",
            "start": {
              "line": 35,
              "column": 14
            },
            "end": {
              "line": 57,
              "column": 6
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const skipRepeatsWith: <A>(Eq: Equivalence.Equivalence<A>) => <E, R>(fx: Fx<A, E, R>) => Fx<A, E, R>;"
    ],
    "typeParameters": [],
    "summary": "Drops elements that are equal to the previous element using a custom equivalence function.",
    "sections": {
      "Why": "`skipRepeatsWith` defines consecutive equality for values that need domain-specific comparison.\nIt compares against the last emitted value, emits the first value, and otherwise preserves order.",
      "Ownership and lifetime": "The per-run previous-value state is updated atomically and released when observation ends. The\npure equivalence adds no failures or services and acquires no resource."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\n\nconst byId = Fx.skipRepeatsWith<{ id: number }>((a, b) => a.id === b.id)\nconst changes = Fx.fromIterable([{ id: 1 }, { id: 1 }, { id: 2 }]).pipe(byId)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/skipRepeatsWith.ts",
        "start": {
          "line": 35,
          "column": 14
        },
        "end": {
          "line": 57,
          "column": 6
        }
      }
    ],
    "since": "1.0.0",
    "category": "Selecting values"
  }
}
