Passing functions to functions.

Is there a way to pass a function (pointer) as in input argument to a function in mojo?
3 Replies
artemiogr97
artemiogr979mo ago
GitHub
mojo/examples/matmul.mojo at main · modularml/mojo
The Mojo Programming Language. Contribute to modularml/mojo development by creating an account on GitHub.
artemiogr97
artemiogr979mo ago
I think you can pass the function either as a parameter or as an argument
raktimbh
raktimbhOP9mo ago
Thank you!

Did you find this page helpful?