public static <S, T> List<S> projectFirst(final List<Pair<S, T>> list) {
    final List<S> outputList = new ArrayList<S>();

    for (final Pair<S, T> pair : list) {
      outputList.add(pair.first());
    }

    return outputList;
  }
Takes a list of <S, T> pairs and retrieves all S elements from the pairs in the list.

@param <S> Type of the first element of the pairs in the list.
@param <T> Type of the second element of the pairs in the list.
@param list The list of <S, T> pairs.
@return A list of all S elements of the input list.
java/zylib/src/main/java/com/google/security/zynamics/zylib/general/PairHelpers.java