3 ms·
You can also create a function capable of doing that for any object, or one which curries the type parameter, if you'd like to reduce the boilerplate if you hav
by hansvm 1y ago
You can also create a function capable of doing that for any object, or one which curries the type parameter, if you'd like to reduce the boilerplate if you have many types of objects you'd like to instantiate positionally.