Last active
December 12, 2016 07:53
Revisions
-
Roman Blum renamed this gist
Dec 12, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Roman Blum revised this gist
Dec 12, 2016 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,15 +3,15 @@ var firstName: String? = "Roman" var lastName: String? = "Blum" // Option 1: Nested if let firstName = firstName { if let lastName = lastName { // Use firstName and lastName } } // Option 2: Seperated by comma if let firstName = firstName, let lastName = lastName { // Use firstName and lastName } -
Roman Blum revised this gist
Dec 12, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,14 +2,14 @@ var firstName: String? = "Roman" var lastName: String? = "Blum" // Option 1: Nested if let unwrappedFirstName = firstName { if let unwrappedLastName = lastName { // Use unwrappedFirstName and unwrappedLastName } } // Option 2: Seperated by comma if let unwrappedFirstName = firstName, let unwrappedLastName = lastName { -
Roman Blum revised this gist
Dec 12, 2016 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,8 +2,16 @@ var firstName: String? = "Roman" var lastName: String? = "Blum" // Nesting if let unwrappedFirstName = firstName { if let unwrappedLastName = lastName { // Use unwrappedFirstName and unwrappedLastName } } // Many optional bindings, seperated by comma if let unwrappedFirstName = firstName, let unwrappedLastName = lastName { // Use unwrappedFirstName and unwrappedLastName } -
Roman Blum revised this gist
Dec 10, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,6 +4,6 @@ var lastName: String? = "Blum" if let unwrappedFirstName = firstName { if let unwrappedLastName = lastName { // Use unwrappedFirstName and unwrappedLastName } } -
Roman Blum revised this gist
Dec 9, 2016 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,8 +2,8 @@ var firstName: String? = "Roman" var lastName: String? = "Blum" if let unwrappedFirstName = firstName { if let unwrappedLastName = lastName { // Do something with unwrappedFirstName and unwrappedLastName } } -
Roman Blum created this gist
Dec 9, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ // Declare two optional values var firstName: String? = "Roman" var lastName: String? = "Blum" if let firstName = firstName { if let lastName = lastName { // Do something with firstName and lastName } }