BiConsumer

fun interface BiConsumer<T, U>

Represents an operation that accepts two input arguments and returns no result. This is the two-arity specialization of Consumer. Unlike most other functional interfaces, BiConsumer is expected to operate via side-effects.

Parameters

the type of the second argument to the operation

Functions

Link copied to clipboard
abstract fun accept(t: T, u: U)

Performs this operation on the given arguments.