I just finished reading the ownership / ref section of the docs and am still trying to wrap my head around how things are passed to functions.
The signature of contains is: __contains__(self, key: K) -> Bool
. I’m coming from Rust, and that would indicate to me that they key needs to be cloned when checking contains, but in Mojo, I guess it is actually passing an immutable referenced in this case because that is the default for fn functions unless the key is the copied inside the method itself?
I’m having trouble re-finding the bit of docs that seemed to describe that.