Skip to content

Instantly share code, notes, and snippets.

@lbehnke
Last active August 29, 2015 14:10
Show Gist options
  • Save lbehnke/a6e71caf902551ad8ae2 to your computer and use it in GitHub Desktop.
Save lbehnke/a6e71caf902551ad8ae2 to your computer and use it in GitHub Desktop.

Revisions

  1. lbehnke revised this gist Dec 5, 2014. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions loops.swift
    Original file line number Diff line number Diff line change
    @@ -2,3 +2,9 @@ for index in 0...4 {}
    for name in names {}
    for (key, value) in map {}
    for var i = 0; i < 10; i++ {}
    for i in 0..<n {}
    for c in "string" {}
    while i < n {}
    do {} while i < n


  2. lbehnke created this gist Dec 5, 2014.
    4 changes: 4 additions & 0 deletions loops.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    for index in 0...4 {}
    for name in names {}
    for (key, value) in map {}
    for var i = 0; i < 10; i++ {}