---
layout: "default"
title: "Range"
description: "Swift documentation for 'Range': A collection of consecutive discrete index values."
keywords: "Range,struct,swift,documentation,contains,dropFirst,dropFirst,dropLast,dropLast,elementsEqual,elementsEqual,enumerate,filter,flatMap,flatMap,forEach,generate,indexOf,lexicographicalCompare,map,maxElement,minElement,prefix,prefixThrough,prefixUpTo,reduce,reverse,sort,split,split,startsWith,startsWith,suffix,suffixFrom,underestimateCount,count,debugDescription,desc