Skip to content

Commit

Permalink
Day 2
Browse files Browse the repository at this point in the history
  • Loading branch information
rajhraval committed Jan 2, 2020
1 parent f223210 commit dd0ace3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
27 changes: 27 additions & 0 deletions Day2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Day 2 - HackingWithSwift - 100DaysOfSwiftUI Challenge

> When going gets tough, everyone leaves - Lynch's Law
### Complex Data Types
Today I learnt about:

- Arrays
- Sets
- Tuples
- Arrays v/s Sets v/s Tuples
- Dictionaries and its default values
- Enumerations
- Enum raw and associated values

The Summary of the entire day was:

- Arrays, sets, tuples, and dictionaries let you store a group of items under a single value. They each do this in different ways, so which you use depends on the behavior you want.
- Arrays store items in the order you add them, and you access them using numerical positions.
- Sets store items without any order, so you can’t access them using numerical positions.
- Tuples are fixed in size, and you can attach names to each of their items. You can read items using numerical positions or using your names.
- Dictionaries store items according to a key, and you can read items using those keys.
- Enums are a way of grouping related values so you can use them without spelling mistakes.
- You can attach raw values to enums so they can be created from integers or strings, or you can add associated values to store additional information about each case.

**That's All for the Day 2 of 100DaysOfSwiftUI!**

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ Daily practices and my journey for the 100DaysOfSwiftUI Challenge.

### :pushpin: What's New Today?

- [First Steps in Swift](https://github.com/rajhraval1/My100DaysOfSwiftUI/blob/master/Day1.md)
- [Complex Data Types](https://github.com/rajhraval1/My100DaysOfSwiftUI/blob/master/Day2.md)


### :clipboard: Topics

**Fundamentals of Swift**

- Day 1 - [First Steps in Swift](https://github.com/rajhraval1/My100DaysOfSwiftUI/blob/master/Day1.md)
- Day 2 - [Complex Data Types](https://github.com/rajhraval1/My100DaysOfSwiftUI/blob/master/Day2.md)


**Happy Learning!**

0 comments on commit dd0ace3

Please sign in to comment.