#Passing functions to functions.
1 messages · Page 1 of 1 (latest)
Yep, there is an example here: https://github.com/modularml/mojo/blob/main/examples%2Fmatmul.mojo#L218-L220
I think you can pass the function either as a parameter or as an argument
1 messages · Page 1 of 1 (latest)
Is there a way to pass a function (pointer) as in input argument to a function in mojo?
Yep, there is an example here: https://github.com/modularml/mojo/blob/main/examples%2Fmatmul.mojo#L218-L220
I think you can pass the function either as a parameter or as an argument