Unfortunately Julia’s flexibility and type system is going to make it a little more complicated than that.
Example, your function doesn’t restrict a to be an Int64 but the docstring implies that. That happened because that was the type of the argument you actually passed (ie the 10).
2 Likes