Hey folks - is it possible to have a generic funct...
# getting-started
r
Hey folks - is it possible to have a generic function with multiple constraints?
c
Yes, you can use a
where
clause to require the generic parameter to satisfy multiple constraints https://kotlinlang.org/docs/generics.html#upper-bounds
r
🙏
k
Reminds me a lot of Rust, cool, we're just missing the ability to implement interfaces after class definition 🤕
r
speaking of Rust, I’ve barely programmed in over a year… the mind rot is real