1
00:00:07,940 --> 00:00:09,100
Everybody what's going on.

2
00:00:09,100 --> 00:00:11,270
This is Caleb with Dove's lips dot com.

3
00:00:11,290 --> 00:00:14,860
And in this video you've got yourself a challenge.

4
00:00:14,860 --> 00:00:18,000
We're going to challenge you in your knowledge of transformations.

5
00:00:18,010 --> 00:00:19,300
And let's go headon.

6
00:00:19,330 --> 00:00:20,720
I'll give you your challenge now.

7
00:00:21,010 --> 00:00:28,780
Pull open your X playground right click on Zip create a new playground page and we'll call this Tran's

8
00:00:28,820 --> 00:00:33,820
formations Dasch challenge.

9
00:00:33,840 --> 00:00:36,470
All right go ahead and select all and delete it.

10
00:00:36,490 --> 00:00:38,910
And here are your challenges.

11
00:00:38,930 --> 00:00:39,700
Boom.

12
00:00:40,030 --> 00:00:49,000
So for map your challenge is to create a name capitalize or create an observable containing three names

13
00:00:49,030 --> 00:00:50,320
of type string.

14
00:00:50,410 --> 00:00:54,790
Then use map to capitalize every element.

15
00:00:54,790 --> 00:01:03,370
Subscribe printing each element and then add the observable to the Dispose bag next for a flat map.

16
00:01:03,370 --> 00:01:09,400
Create a variable called car price of type variable holding the cost of a car.

17
00:01:09,400 --> 00:01:16,320
Create a publish subject called Car subject of type variable with a type int.

18
00:01:16,330 --> 00:01:24,320
OK so a variable of type int call flat map on the car subject and cast each element as an observable.

19
00:01:24,380 --> 00:01:32,710
Subscribe and print out each new observable add to the Dispose bag and be sure to call on next to pass

20
00:01:32,710 --> 00:01:35,860
in the car price observable below the subscription.

21
00:01:36,160 --> 00:01:42,710
OK so next filter create a struct called element and give it three properties.

22
00:01:42,880 --> 00:01:50,590
Name of type String abbreviation of type string and periodic number of type int create five instances

23
00:01:50,830 --> 00:01:54,600
of element 4 different elements on the periodic table.

24
00:01:54,880 --> 00:02:02,680
Google the periodic table if you must then create an observable that includes all five element instances.

25
00:02:02,680 --> 00:02:04,130
You create it.

26
00:02:04,230 --> 00:02:10,970
Use filter to filter out any elements whose periodic number is less than 10.

27
00:02:11,000 --> 00:02:18,040
Subscribe and print out all three properties for each element name abbreviation and periodic number.

28
00:02:18,040 --> 00:02:21,160
Then add the subscription to the Dispose bag.

29
00:02:21,490 --> 00:02:23,340
And finally for.

30
00:02:23,590 --> 00:02:30,370
Create two observable instances one called name observable and the other called username observable

31
00:02:30,970 --> 00:02:32,090
using dot of.

32
00:02:32,110 --> 00:02:39,310
At the end of both observables pass three first names of type string into name observable then pass

33
00:02:39,310 --> 00:02:48,160
in 3 user names into user name observable below that create a new observable and using Zip create a

34
00:02:48,160 --> 00:02:50,140
string literal using the values.

35
00:02:50,170 --> 00:02:54,400
Dollar Signs 0 and dollar sign 1 for example like this.

36
00:02:54,430 --> 00:02:59,650
You can use string encapsulation to print the value here and then a colon and then dollar sign one to

37
00:02:59,650 --> 00:03:03,820
print out the username subscribe and in the next closure.

38
00:03:03,820 --> 00:03:07,710
Print out the observable that is created by the zip function.

39
00:03:07,930 --> 00:03:09,060
Add to dispose back.

40
00:03:09,160 --> 00:03:10,990
So there's your challenge.

41
00:03:10,990 --> 00:03:14,850
You're going to use all four of the transformation functions that you learned.

42
00:03:14,980 --> 00:03:18,820
Good luck with this challenge and we'll see in the next section where we're going to start putting our

43
00:03:18,820 --> 00:03:21,260
Ex-White into practice building real apps.

44
00:03:21,290 --> 00:03:22,590
I'll see over there.
