Created
April 11, 2018 17:06
-
-
Save vishw33/ce9b655750d344fe3b2f85d7163bfa9d to your computer and use it in GitHub Desktop.
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
| let person1 = Person(name:"Jhon" , age:40, salary: 932) | |
| let person2 = Person(name:"david" , age:45, salary: 1876) | |
| let person3 = Person(name:"jim" , age:30, salary: 1763) | |
| let person4 = Person(name:"tom" , age:28, salary: 1527) | |
| let person5 = Person(name:"Harry" , age:50, salary: 13344) | |
| var personArray:[Person] = [person1,person2,person3,person4,person5] | |
| personArray.map{print("Person-Age :- \($0.age)")} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment