<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Candara, sans-serif;">
<div>
<div>
<div>Hi all,</div>
<div><br>
</div>
<div>I was just wondering if there is 'break' statement in Swift 'for' and possibly 'foreach' constructs? </div>
<div><br>
</div>
<div>I have a potential use case that would benefit from this although it probably doesn't take too much overhead right now to go through the entire array looking for a particular item rather than breaking when the item is found.</div>
<div><br>
</div>
<div>Just wondered in case I missed it in the documentation.</div>
<div><br>
</div>
<div>Tim. </div>
<div>
<p style="font-size: 12px; margin: 0px; font-family: Verdana;">---</p>
<p style="margin: 0px; font-family: Verdana;"><span style="font-size: 10px;"><b>Timothy Stitt PhD</b> / Head of Scientific Computing</span></p>
<p style="margin: 0px; font-family: Verdana;"><span style="font-size: 10px;">The Genome Analysis Centre (TGAC)</span></p>
<p style="margin: 0px; font-family: Verdana; color: rgb(4, 46, 238);"><span style="text-decoration: underline; font-size: 10px;"><a href="http://www.tgac.ac.uk/">http://www.tgac.ac.uk/</a></span></p>
<p style="margin: 0px; font-family: Cambria; min-height: 19px;"><span style="font-size: 10px;"><br>
</span></p>
<p style="margin: 0px; font-family: Verdana;"><span style="font-size: 10px;">p: +44 1603 450378</span></p>
<p style="margin: 0px; font-family: Verdana; color: rgb(13, 102, 213);"><span style="color: rgb(0, 0, 0); font-size: 10px;">e: <a href="mailto:timothy.stitt@tgac.ac.uk">timothy.stitt@tgac.ac.uk</a></span></p>
</div>
</div>
</div>
</body>
</html>