Unrelated question: is there a way to forward arguments generically to another function in kotlin?
s
streetsofboston
07/04/2019, 11:06 PM
You mean currying?
n
Nir
07/04/2019, 11:22 PM
Not really no
Like as an example, suppose I have a class that wraps a DataClass
I went to expose the copy function outward
*want
but that would mean repeating its signature
which is a significant amount of boilerplate
I want to be able to write a member function whose signature basically says: i don't care what typse you give me, I accept anything, but whatever you give me I'll just forward to copy