Skip to content

Instantly share code, notes, and snippets.

@KentarouKanno
Last active April 27, 2016 03:44
Show Gist options
  • Save KentarouKanno/a43203b199431c73e4a10bb30d4ead67 to your computer and use it in GitHub Desktop.
Save KentarouKanno/a43203b199431c73e4a10bb30d4ead67 to your computer and use it in GitHub Desktop.
SequenceType

SequenceType

// RangeはSequenceTypeなのでforEachが使える
(0..<5).forEach {
    print($0)
}

//=> 
/*
 0
 1
 2
 3
 4
 */

★ enumerate

enumerate()

★ minElement

minElement()

★ maxElement

maxElement()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment