3 ms·
You can call any method as a function, if you'd like. foo.bar(baz) becomes bar(foo, baz) Though you may also need to add in some &s and/or *s, because m
by steveklabnik 4y ago
You can call any method as a function, if you'd like.
foo.bar(baz)
becomes
bar(foo, baz)
Though you may also need to add in some &s and/or *s, because method call syntax autoref/derefs, and function call syntax does not.