public static <A> void withArgs(A[] a, TConsumer1<A> consumer) throws Throwable { try { Stream.of(a).forEach(arg -> uncheck(() -> consumer.accept(arg))); } catch (UncheckedException e) { throw e.getCause(); } }
public static <A> void withArgs(A[] a, TConsumer1<A> consumer) throws Throwable { try { Stream.of(a).forEach(arg -> uncheck(() -> consumer.accept(arg))); } catch (UncheckedException e) { throw e.getCause(); } }