Created
April 11, 2018 17:21
-
-
Save vishw33/b7b059f6fd57350536112d7a9c8cce36 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 reArrangedPersonByAge = personArray.arrangePersonsByAge() | |
| reArrangedPersonByAge.map{print("Person-Rearranged-Age :- \($0.age)")} | |
| let reArrangedPersonBySalary = personArray.arrangePersonsBySalary() | |
| reArrangedPersonBySalary.map{ print("Person-Rearranged-Salary :- \($0.salary)") } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment