public static Function<String,String> cut(final String delimiter,final int field){
  Objects.requireNonNull(delimiter,"The delimiter must not be null");
  if (field < 1) {
    throw new IllegalArgumentException("Field must be >= 1");
  }
  return null;
}

public static Function < String , String > cut ( final String delimiter , final int field ) { Objects . requireNonNull ( delimiter , "The delimiter must not be null" ) ; if ( field < 1 ) { throw new IllegalArgumentException ( "Field must be >= 1" ) ; } return null ; }
split a string by a delimiter and extract fields
