api/src/main/java/com/tersesystems/echopraxia/api/Value.java
/**
   * Takes an array of objects and a transform function that maps from T to a value.
   *
   * @param values an array of values.
   * @param transform the transform function
   * @param <T> the type of object.
   * @return the Value.
   */
Takes an array of objects and a transform function that maps from T to a value.
@param values an array of values.
@param transform the transform function
@param  the type of object.
@return the Value.
Takes an array of objects and a transform function that maps from T to a value . @param values an array of values . @param transform the transform function @param the type of object . @return the Value .
@NotNull
  public static <T> ArrayValue array(
      @NotNull Function<T, Value<?>> transform, T @NotNull [] values) {
    if (values == null || values.length == 0) {
      return ArrayValue.EMPTY;
    }
    return new ArrayValue(asList(values, transform));
  }
@ NotNull public static < T > ArrayValue array ( @ NotNull Function < T , Value < ? > > transform , T @ NotNull [ ] values ) { if ( values == null || values . length == 0 ) { return ArrayValue . EMPTY ; } return new ArrayValue ( asList ( values , transform ) ) ; }
Takes an array of objects and a transform function that maps from T to a value.
Takes an array of objects and a transform function that maps from T to a value .
// nulls are explicitly allowed in array.