Skip to content

Instantly share code, notes, and snippets.

@kongtomorrow
Created May 1, 2015 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kongtomorrow/f2f7aa2c92d61eadcb72 to your computer and use it in GitHub Desktop.
Save kongtomorrow/f2f7aa2c92d61eadcb72 to your computer and use it in GitHub Desktop.
why does this compile?
import Foundation
var backing = NSMutableArray()
func pop()->Int? {
return backing.firstObject.map { $0.integerValue }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment