scenic icon indicating copy to clipboard operation
scenic copied to clipboard

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

Open vacarsu opened this issue 2 years ago • 0 comments

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.

vacarsu avatar Sep 19 '23 01:09 vacarsu