Why can't I specify return type of a function as R...
# getting-started
s
Why can't I specify return type of a function as Result. Something like this:
Copy code
fun fetchProducts(): Result<List<Product>> { }
IDE is erroring "kotlin.Result cannot be used as a return type"
s
thank you
t
Well, you might write your own Result class if needed. Or start using Arrow right away. 🙂