class CollectionUtils {

	public static OptionalDouble first(DoubleSortedSet set) {
		if (set.isEmpty()) {
			return OptionalDouble.empty();
		}
		double first = set.firstDouble();
		return OptionalDouble.of(first);
	}

}