---
layout: "default"
title: "PermutationGenerator"
description: "Swift documentation for 'PermutationGenerator': A generator that adapts a collection C and any sequence of
its Index type to present the collection&#39;s elements in a
permuted order."
keywords: "PermutationGenerator,struct,swift,documentation,contains,dropFirst,dropFirst,dropLast,dropLast,elementsEqual,enumerate,filter,flatMap,flatMap,forEach,lexicographicalCompare,map,maxElement,minElement,next,prefix,reduce,reverse,sort,split,startsWith,su