ScenicFramework / scenic

Core Scenic library
Apache License 2.0
1.96k stars 133 forks source link

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

Open vacarsu opened 1 year ago

vacarsu commented 1 year ago

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.