M
Modular13mo ago
raktimbh

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
artemiogr9713mo 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
artemiogr9713mo ago
I think you can pass the function either as a parameter or as an argument
raktimbh
raktimbhOP13mo ago
Thank you!

Did you find this page helpful?