Last active
May 29, 2018 12:21
-
-
Save dineshba/08fb82d2edf1059329ba6616911a0f2f to your computer and use it in GitHub Desktop.
This file contains 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
let a = 5 // Int | |
let b = 5.0 // Double | |
let c = Float(5.3) // Float | |
let sugar = Sugar(taste: .sweet) // Sugar | |
let sweet = Taste.sweet // Taste | |
let sour: Taste = .sour // Taste | |
let sum = sum(5, nil) // Int? | |
let firstValue = [1,2,3].first // Int? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment