code: public static <T1, T2> Consumer<T2> curry(BiConsumer<T1, T2> consumer, T1 first) {
          dbc.precondition(consumer != null, "cannot bind parameter of a null consumer");
          return second -> consumer.accept(first, second);
      }
docs: Partial application of the first parameter to a binary consumer.
  
  @param <T1> the consumer former parameter type
  @param <T2> the consumer latter parameter type
  @param consumer the binary consumer to be curried
  @param first the value to be curried as first parameter
  @return the curried unary consumer