---
layout: "default"
title: "CollectionOfOne"
description: "Swift documentation for 'CollectionOfOne': A collection containing a single element of type Element."
keywords: "CollectionOfOne,struct,swift,documentation,contains,dropFirst,dropFirst,dropLast,dropLast,elementsEqual,enumerate,filter,flatMap,flatMap,forEach,generate,indexOf,lexicographicalCompare,map,maxElement,minElement,prefix,prefixThrough,prefixUpTo,reduce,reverse,sort,split,startsWith,suffix,suffixFrom,underestimateCount,count,endIndex,first,