code: public static <T> MutableFloatCollection collectFloat(
              Iterable<T> iterable,
              FloatFunction<? super T> floatFunction)
      {
          if (iterable instanceof MutableCollection)
          {
              return ((MutableCollection<T>) iterable).collectFloat(floatFunction);
          }
          if (iterable instanceof ArrayList)
          {
              return ArrayListIterate.collectFloat((ArrayList<T>) iterable, floatFunction);
          }
          if (iterable instanceof List)
          {
              return ListIterate.collectFloat((List<T>) iterable, floatFunction);
          }
          if (iterable != null)
          {
              return IterableIterate.collectFloat(iterable, floatFunction);
          }
          throw new IllegalArgumentException("Cannot perform a collectFloat on null");
      }
docs: Returns a new {@code float} collection with the results of applying the specified floatFunction for each element of the iterable.
  <p>
  Example using a Java 8 lambda expression:
  <pre>
  MutableFloatCollection floats =
  Iterate.<b>collectFloat</b>(people, person -> person.getHeightInInches());
  </pre>
  <p>
  Example using an anonymous inner class:
  <pre>
  MutableFloatCollection floats =
  Iterate.<b>collectFloat</b>(people,
  new FloatFunction&lt;Person&gt;()
  {
  public float floatValueOf(Person person)
  {
  return person.getHeightInInches();
  }
  });
  </pre>