Alright, so in the previous session, we saw how to work with argument to push an argument, and we identify that push an argument, she's really a necessity, and NDA must be clear position matters. Now let's see how to work with variadic. admissible parodic argument me with another one. Let's see this one last radix, we're going to be CLR, the pipe, the name is in a minute bad, but then you move on like that to be put, click, then I'm going to create a simple function to be our main function. Then to keep it simple, see Li with variadic variadic. So I already admitted a certain motor pool, I can write multiple arguments.
Like we did it for the options to consider the same thing for here. Then let's click that particular segment that you want to receive Right. How do we do this with this template with a let's call it simplest way that we can use several format. So let's see an example. We created a simple CLA to move to move one file to another file, just simulating it. So it's going to be give me an LS, convert this entire stuff into a CLA by going click, go to command, pivot.
Now for the Radek is going to be click that argument can we just going to keep it like source like it's going to be source. So the source is going to be one right or it can be several quantity you wanted to be able to give it as multiple source. Then any number of items you want to receive what is the verdict admit to be a negative one. We can just keep as many as we want, right? So just want to be assets are limited Number mobilis hopefulness perfect. Let's go on with this position argument is going to be their destination destination right.
So that is something very basic. Now let's add it to it. So I have to add our source and then our destination and source tell you something very simple that you have done right to want you to copy the content from one place to another place right that is a big idea. So we are copying stuff from one place to another. Think of this in a nice coat this closure so for if in my source, I this friend to this particular source is limited. I want you to do something so I wanted to say click the clicker moving A particular file to the folder, right you're moving from one file, moving a file to a folder.
Right? It is what format if very interested in why so it is something very busy get something very simple if our destination. So let's see this let's run it and see what you come back here. Now you're using the VA radix Eli does a help to see how to use it try to this option or source or destination in case I want to use it, I can just do it, my buddy so let's I want to move one file 234 to a particular folder. In this case if I want the PST file to a PST file 330 PST. Then I'm going to supply my folder here.
So let's apply the folder if it is going to be easy, I mean food I mean food. Nice. I'm going to separate the two moving for one for two by three main food. So, with this variadic you can supply as many as the number of argument to one particular destination, right? That's the basic idea behind the variadic argument. So, it is very, very useful if you are doing a lot of things can use this particular article.
So, this is something that is useful creating Attach File to like touch the transcript to the C file, one dot txt file to the TST three dot txt right. So, this is something like that we are trying to still let the same thing we are creating all these files we can accept as many as one with this particular option. That is how quick with periodic right. You can also limit it by going with in different format. These are some of the ways you can work with a variadic document called number of arguments being multiple, right can be Radek give me a call multiple bodies like Multiple I can make I can make this one too if I make this one to damage that is to only asset quality not more than two. So let's see what we get us to come back to this place.
So if I make it three give us an arrow right Connect pedestrian argument midfielder. So to me that this month is what this was equally to. So I have to come back to this place can ensure that this is only two right if I want if I to get from now. It's my quick pivot. So that is how to work with dyadic admit multiple items. To thank you for watching and see you in the next session.
Stay blessed