Created
February 10, 2015 20:44
-
-
Save qwzybug/3038d0a880b2fe3b902d to your computer and use it in GitHub Desktop.
countdown to haskell-style commas in 3... 2... 1...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for userDict in userList { | |
if let | |
id = userDict["id"] as? Int | |
, name = userDict["name"] as? String | |
, email = userDict["email"] as? String | |
, address = userDict["address"] as? [String: AnyObject] | |
{ | |
users.append(User(id: id, name: name, ...)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment