reactfx/src/main/java/org/reactfx/Subscription.java
static <T> Subscription multi(
            Function<? super T, ? extends Subscription> f,
            Collection<T> elems) {
        return multi(elems.stream().map(f)
                             .toArray(Subscription[]::new));
    }
/**
     * Subscribes to all elements of the given collection by the given function
     * and returns an aggregate subscription that can be used to cancel all
     * element subscriptions.
     */
Subscribes to all elements of the given collection by the given function
and returns an aggregate subscription that can be used to cancel all
element subscriptions.
Subscribes to all elements of the given collection by the given function and returns an aggregate subscription that can be used to cancel all element subscriptions .
static <T> Subscription multi(
            Function<? super T, ? extends Subscription> f,
            Collection<T> elems) {
        return multi(elems.stream().map(f)
                             .toArray(Subscription[]::new));
    }
static < T > Subscription multi ( Function < ? super T , ? extends Subscription > f , Collection < T > elems ) { return multi ( elems . stream ( ) . map ( f ) . toArray ( Subscription [ ] :: new ) ) ; }
Subscribes to all elements of the given collection by the given function
 and returns an aggregate subscription that can be used to cancel all
 element subscriptions.
Subscribes to all elements of the given collection by the given function and returns an aggregate subscription that can be used to cancel all element subscriptions .