activeVertices<V> function

Map<V, VertexSnapshot<V>> activeVertices<V>(
  1. Map<V, VertexSnapshot<V>> vertices
)

Implementation

Map<V, VertexSnapshot<V>> activeVertices<V>(
        Map<V, VertexSnapshot<V>> vertices) =>
    vertices.entries.fold(
        {},
        (a, c) =>
            {...a, if (c.value.state != SnapshotState.removed) c.key: c.value});