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