memoryFragmentValidAt()
Returns true when a fragment is valid at asOf.
Omitted asOf has no clock to compare against, so it admits only fragments
that are live and not valid-time delayed.
Import
Section titled “Import”import { memoryFragmentValidAt } from "@graphrefly/ts/patterns";Signature
Section titled “Signature”function memoryFragmentValidAt( fragment: MemoryFragment, asOf?: bigint,): booleanParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
fragment | MemoryFragment | fragment value used by the helper. |
asOf | bigint | as of value used by the helper. |
Returns
Section titled “Returns”A boolean value.
Example
Section titled “Example”import { memoryFragmentValidAt } from "@graphrefly/ts/patterns";Source
Section titled “Source”packages/ts/src/patterns/semantic-memory.ts