gradle
8.6

# zip

abstract fun <U, R> zip(right: Provider<U>, combiner: BiFunction<out Any, out Any, out @Nullable R>): Provider<R>(source)

Returns a provider which value will be computed by combining this provider value with another provider value using the supplied combiner function.

If the supplied providers represents a task or the output of a task, the resulting provider will carry the dependency information.

#### Return

a combined provider

#### Parameters

right

the second provider to combine with

combiner

the combiner of values. May return `null`, in which case the provider will have no value.

<U>

the type of the second provider

<R>

the type of the result of the combiner