2 Comments

This is really cool! Also, is it also possible to declare the function's return datatype as: "-> int" just like in Rust?

Expand full comment

That won't comply with the rules of Cython. But you can declare the variable to be returned in the function itself using cdef and then later, return it.

Expand full comment