Is it possible to instantiate this class mapping dynamically my columns to contructor parameters?
1 month ago
How do I create an Array<T> (like Array<String>, Array<MyClass> etc.) from a List<T>, with the Array actually being the type T, not Array<Any?>? I’m inside an inline function with reified type parameter, so I should know the T KClass, but how do I dynamically create an Array<T>? I tried calling the Array constructor
public inline constructor(size: Int, init: (Int) -> T)
via reflection, but I don’t know how that second parameter is supposed to work.
2 weeks ago
is it possible to determine if a lambda type has a receiver or just a normal argument from parsing a function parameter's type? i'm in the process of switching from reflect to metadata-jvm (or maybe fully blown UAST) but looking for a quick workaround until then