There's a good use case for `invoke` in companion ...
# getting-started
k
There's a good use case for
invoke
in companion objects, for example the
Left
and
Right
"constructors" for kategory here: https://github.com/kategory/kategory/blob/master/kategory/src/main/kotlin/kategory/data/Either.kt They help with generic inference before creating an instance.