---
layout: "default"
title: "IndexingGenerator"
description: "Swift documentation for 'IndexingGenerator': A generator for an arbitrary collection.  Provided C
conforms to the other requirements of Indexable,
IndexingGenerator&lt;C&gt; can be used as the result of C&#39;s
generate() method.  For example:."
keywords: "IndexingGenerator,struct,swift,documentation,contains,dropFirst,dropFirst,dropLast,dropLast,elementsEqual,enumerate,filter,flatMap,flatMap,forEach,lexicographicalCompare,map,maxElement,minElem