Hide this is really hard.
Once again welcome to the next value of this model of high level functions and lambdas.
Now in this video now it's time to explore the eight ID which is actually the implicit name of a single
parameter.
Well using lambdas.
So let's check it out.
So here insert the intelligent ID.
I've simply created a class of program inside which I have the function of reverse and display method
that will simply accept a string as a pyramid.
And also a lambda expression and then reverse and displayed a string.
Right.
So inside the main method I would simply call this midterm program dord lazy reverse and display boss
a string and then followed by the number expression.
So to define a Londa expression use the curly bracket and then I use s going into let's see as Dorte
reversed which is actually the predefined method for this string.
Now insert the reverse and display method.
Let's just make it a high level function that accepts a Landale function as it did so as a second time
we could simply use my function to find the name and then dump it.
We did as string expression this operated from string to legacy unit.
Let's see.
String.
Right.
Because this reversed method actually returns a string value.
So inside the body of the method of this lambda expression we simply returning the string value.
So that is why instead of unit we're having string.
Right and now insert this I simply call my function and simply pause SDR.
Right.
And this method will simply return the razored.
So when the statement will be executed this will be evaluated as as SDR dog reversed that place.
HELLO DOG reversed which will simply give us all ears.
That is the reversed string and this string will be stored inside that is variable and then developing
that is added.
Now what about the topic of this value.
That is the I-T it.
But I know earlier we were using there to beat meters or Trivett and meters inside the method of High-Level
functions.
But currently I'm having only one.
I mean.
So whenever we're having very good doctors here as is up here.
So then we're having one.
Then we can simply replace this as by ID and also removed this operated off at all.
And also this is dog operated.
So instead of we can simply use it right and then simply remove this operator and replace this by it.
So I dod reversed so early it was as dark reversed.
Now it is 80 d'arte reversed.
So it is actually the name of the single parameter inside the lambda expression.
Now remember this concept is only applicable if we have only one barometer that is here.
I'm having only one bit of string.
So that is why it will represent the string right.
So now let us read the code.
So here in the output we get l each.
That is the reverse of Hello.
Now inside the reverse and display method this might function.
SDR was earlier evaluated as Deardorff reversed.
Right.
But now it is actually evaluated as I do dord reversed which in turn is interpreted as SDR or reversed.
And then we get l l e h in the output console.
Now in the upcoming Mordy was I'm simply going to use directly the 8 which is the implicit name for
the single parameter.
So always remember this concept.
It is very useful.
So including this video.
So far we have seen multiple examples related to the high level function and also the lambda expressions.
Just to make it a concept more clear.
I'm giving you more and more examples.
So in the next video we will learn more about the high level functions and Londres again.
So catch you guys in the next video.
Thanks for watching and have a good day.