code: @SuppressWarnings("unchecked")
      public static <From, To> List<To> map(List<From> list, MapClosure<From,To> f) {
          List<To> result = new ArrayList<To>(list.size());
          for (From value : list) {
              result.add( f.eval(value) );
          }
          return result;
      }
docs: Applies a function to every item in a list.
  @param list      the list with values
  @param f         closure to apply
  @param <From>    value type
  @param <To>      destination type
  @return list of transformed values