I proposed this some time ago…
It looks pretty complicated, but it may work for your use case.
In practice, you don’t need to define the function as inline, but you can get the type parameter automagically.
I proposed this some time ago…
It looks pretty complicated, but it may work for your use case.
In practice, you don’t need to define the function as inline, but you can get the type parameter automagically.