Last active
June 7, 2020 19:40
-
-
Save byJeevan/29f1e20cf0a07e961e982890bd9c53a3 to your computer and use it in GitHub Desktop.
Explore swift APIs that reduces lots of code effort
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
Author
Author
Using Enums :
- with combining Tuples for complex data structure.
- Polymorphism representation of collections ex. Array. That gives compile time safety check.
- Stay away from hierarchical architecture (means avoids subclass). Where we can add additional type with new property without re-arranging super class properties.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
4. Stack implementation (LIFO)
`
//BONUS: Implement generic type of stack