Scenic.Graph.find

You're seeing just the function find, go back to Scenic.Graph module for more information.

Specs

find(graph :: t(), (any() -> as_boolean(term()))) :: [
  {any(), Scenic.Primitive.t()}
]

Find one or more primitives in a graph via a filter function.

Pass in a function that accepts a primitive and returns a boolean.

Returns a list of tuples containing the matching id at the primitive.

[{id, primitive}]

Warning: This function crawls the entire graph and is thus slower than accessing items via a fully-specified id.