1 00:00:00,560 --> 00:00:01,830 Hide this is really hard. 2 00:00:01,850 --> 00:00:07,010 Once again welcome to the next value of this model of high level functions and lambdas. 3 00:00:07,160 --> 00:00:13,970 Now in this video now it's time to explore the eight ID which is actually the implicit name of a single 4 00:00:13,970 --> 00:00:14,710 parameter. 5 00:00:14,880 --> 00:00:16,990 Well using lambdas. 6 00:00:17,120 --> 00:00:18,590 So let's check it out. 7 00:00:19,070 --> 00:00:21,380 So here insert the intelligent ID. 8 00:00:21,410 --> 00:00:27,410 I've simply created a class of program inside which I have the function of reverse and display method 9 00:00:27,890 --> 00:00:30,590 that will simply accept a string as a pyramid. 10 00:00:30,980 --> 00:00:35,520 And also a lambda expression and then reverse and displayed a string. 11 00:00:35,570 --> 00:00:36,530 Right. 12 00:00:36,530 --> 00:00:43,650 So inside the main method I would simply call this midterm program dord lazy reverse and display boss 13 00:00:43,800 --> 00:00:49,340 a string and then followed by the number expression. 14 00:00:49,350 --> 00:00:59,600 So to define a Londa expression use the curly bracket and then I use s going into let's see as Dorte 15 00:01:01,130 --> 00:01:06,510 reversed which is actually the predefined method for this string. 16 00:01:06,510 --> 00:01:09,370 Now insert the reverse and display method. 17 00:01:09,370 --> 00:01:15,790 Let's just make it a high level function that accepts a Landale function as it did so as a second time 18 00:01:15,890 --> 00:01:22,360 we could simply use my function to find the name and then dump it. 19 00:01:22,420 --> 00:01:30,590 We did as string expression this operated from string to legacy unit. 20 00:01:30,620 --> 00:01:31,370 Let's see. 21 00:01:31,420 --> 00:01:32,640 String. 22 00:01:32,860 --> 00:01:33,380 Right. 23 00:01:33,540 --> 00:01:38,040 Because this reversed method actually returns a string value. 24 00:01:38,160 --> 00:01:43,800 So inside the body of the method of this lambda expression we simply returning the string value. 25 00:01:43,800 --> 00:01:47,070 So that is why instead of unit we're having string. 26 00:01:47,140 --> 00:01:55,690 Right and now insert this I simply call my function and simply pause SDR. 27 00:01:55,820 --> 00:01:56,820 Right. 28 00:01:56,990 --> 00:02:02,380 And this method will simply return the razored. 29 00:02:02,960 --> 00:02:11,030 So when the statement will be executed this will be evaluated as as SDR dog reversed that place. 30 00:02:11,060 --> 00:02:14,910 HELLO DOG reversed which will simply give us all ears. 31 00:02:15,050 --> 00:02:21,140 That is the reversed string and this string will be stored inside that is variable and then developing 32 00:02:21,260 --> 00:02:22,530 that is added. 33 00:02:22,700 --> 00:02:25,030 Now what about the topic of this value. 34 00:02:25,100 --> 00:02:26,700 That is the I-T it. 35 00:02:26,800 --> 00:02:33,400 But I know earlier we were using there to beat meters or Trivett and meters inside the method of High-Level 36 00:02:33,430 --> 00:02:34,380 functions. 37 00:02:34,460 --> 00:02:36,590 But currently I'm having only one. 38 00:02:36,600 --> 00:02:37,370 I mean. 39 00:02:37,640 --> 00:02:41,870 So whenever we're having very good doctors here as is up here. 40 00:02:42,080 --> 00:02:44,420 So then we're having one. 41 00:02:44,660 --> 00:02:51,430 Then we can simply replace this as by ID and also removed this operated off at all. 42 00:02:51,530 --> 00:02:53,770 And also this is dog operated. 43 00:02:53,960 --> 00:03:02,400 So instead of we can simply use it right and then simply remove this operator and replace this by it. 44 00:03:02,600 --> 00:03:08,080 So I dod reversed so early it was as dark reversed. 45 00:03:08,090 --> 00:03:10,520 Now it is 80 d'arte reversed. 46 00:03:10,670 --> 00:03:16,270 So it is actually the name of the single parameter inside the lambda expression. 47 00:03:16,280 --> 00:03:22,630 Now remember this concept is only applicable if we have only one barometer that is here. 48 00:03:22,650 --> 00:03:25,030 I'm having only one bit of string. 49 00:03:25,130 --> 00:03:28,610 So that is why it will represent the string right. 50 00:03:29,980 --> 00:03:32,770 So now let us read the code. 51 00:03:32,930 --> 00:03:35,760 So here in the output we get l each. 52 00:03:35,810 --> 00:03:38,740 That is the reverse of Hello. 53 00:03:38,750 --> 00:03:42,470 Now inside the reverse and display method this might function. 54 00:03:42,500 --> 00:03:47,080 SDR was earlier evaluated as Deardorff reversed. 55 00:03:47,120 --> 00:03:47,810 Right. 56 00:03:48,000 --> 00:03:58,910 But now it is actually evaluated as I do dord reversed which in turn is interpreted as SDR or reversed. 57 00:03:58,930 --> 00:04:02,820 And then we get l l e h in the output console. 58 00:04:03,220 --> 00:04:10,030 Now in the upcoming Mordy was I'm simply going to use directly the 8 which is the implicit name for 59 00:04:10,030 --> 00:04:11,380 the single parameter. 60 00:04:11,560 --> 00:04:13,780 So always remember this concept. 61 00:04:13,780 --> 00:04:15,040 It is very useful. 62 00:04:15,190 --> 00:04:16,560 So including this video. 63 00:04:16,570 --> 00:04:22,690 So far we have seen multiple examples related to the high level function and also the lambda expressions. 64 00:04:23,860 --> 00:04:25,880 Just to make it a concept more clear. 65 00:04:25,930 --> 00:04:28,450 I'm giving you more and more examples. 66 00:04:28,690 --> 00:04:33,550 So in the next video we will learn more about the high level functions and Londres again. 67 00:04:33,700 --> 00:04:35,470 So catch you guys in the next video. 68 00:04:35,470 --> 00:04:37,300 Thanks for watching and have a good day.