code: public static <T> MutableByteCollection collectByte(
              Iterable<T> iterable,
              ByteFunction<? super T> byteFunction)
      {
          if (iterable instanceof MutableCollection)
          {
              return ((MutableCollection<T>) iterable).collectByte(byteFunction);
          }
          if (iterable instanceof ArrayList)
          {
              return ArrayListIterate.collectByte((ArrayList<T>) iterable, byteFunction);
          }
          if (iterable instanceof List)
          {
              return ListIterate.collectByte((List<T>) iterable, byteFunction);
          }
          if (iterable != null)
          {
              return IterableIterate.collectByte(iterable, byteFunction);
          }
          throw new IllegalArgumentException("Cannot perform a collectByte on null");
      }
docs: Returns a new {@code byte} collection with the results of applying the specified byteFunction for each element of the iterable.
  <p>
  Example using Java 8 lambda:
  <pre>
  MutableByteCollection bytes =
  Iterate.<b>collectByte</b>(people, person -> person.getCode());
  </pre>
  <p>
  Example using anonymous inner class:
  <pre>
  MutableByteCollection bytes =
  Iterate.<b>collectByte</b>(people,
  new ByteFunction&lt;Person&gt;()
  {
  public byte byteValueOf(Person person)
  {
  return person.getCode();
  }
  });
  </pre>