...within minimal effort.
This is really cool! Also, is it also possible to declare the function's return datatype as: "-> int" just like in Rust?
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.
This is really cool! Also, is it also possible to declare the function's return datatype as: "-> int" just like in Rust?
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.