First method works if explicit SAM intefaces speci...
# stdlib
b
First method works if explicit SAM intefaces specified
Copy code
val collector = Collector.of<String, StringBuilder>(
            Supplier { StringBuilder() },
            BiConsumer { b, s -> b.append(s) },
            BinaryOperator { b1, b2 -> b1.append(b2) })