code: public static <T> Runnable curry(Consumer<T> consumer, T value) {
          dbc.precondition(consumer != null, "cannot bind parameter of a null consumer");
          return () -> consumer.accept(value);
      }
docs: Partial application of the first parameter to an consumer.
  
  @param <T> the consumer parameter type
  @param consumer the consumer to be curried
  @param value the value to be curried
  @return the curried runnable