buildMultiset

inline fun <E> buildMultiset(builderAction: ImmutableMultiset.Builder<E>.() -> Unit): Multiset<E>(source)

Builds a new immutable multiset with the given builderAction, using the builder inference api.

Receiver

A builder action applied to immutable multiset builder.

Return

The newly created multiset.

See also

Parameters

E

the type of the multiset

builderAction

The builder action to apply to the multiset