cocoafrog, 1 month ago @ctietze @nicklockwood also loops can have where clauses, eg for batch in batches where !batch.isEmpty { } And let for optional unwrap works in loops as well: var next: Node? while let current = next { // do stuff next = current.parent } And you can combine the two.
@ctietze @nicklockwood also loops can have where clauses, eg
for batch in batches where !batch.isEmpty { }
And let for optional unwrap works in loops as well:
var next: Node? while let current = next { // do stuff next = current.parent }
And you can combine the two.