Skip to content

Graph.find/2 not passing correct value to callback according to docs. #331

@vacarsu

Description

@vacarsu

Steps to reproduce

Simply call the function as below:

Graph.find(graph, fn prim ->
  IO.inspect(prim) # <-- logs the primitive id instead of the full primitive
  true
end)

Expected Behavior

The docs state that the function should return the full primitive to the callback.

Actual Behavior

The value being passed to the callback is only the primitive's id.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions