holgerbrandl
05/28/2016, 1:54 PMinvoke
I could enable collection-like access for any object, and by combining it with infix
I could even get rid of the round brackets. I know my example is not really useful, originally I wanted to use scala-like matcher constructs like listOf("foo", "bar_1", "bar_b2") should contain "sdf"
in kotlintest (see https://github.com/kotlintest/kotlintest/issues/21 @sam ) which would be possible if infix
and invoke
could be combined as in my example.