My only difference would be dropping the second co...
# codereview
m
My only difference would be dropping the second constructor altogether. If you have test code where you want to pass a lambda just invoke the adapter function (whether top level or a member of the companion object) from the context of the test.