![]() ![]() ![]() ![]() The end keyword should be used to indicate the end of the function. Functions should be present at the end of the file, and the script file name cannot have the same name as the function in the file. We can also save the function, which contains function definitions and commands.We can save the function in a function file that contains function definitions, and the name of the file must match the first function name in the file.The function name, which begins with alphabets and can contain number, characters or underscores, are considered valid.There are some rules which need to be followed for valid function names and saving the function: The above statement should be first-line while declaring the function. Here my fun is the function name that accepts the input arguments i1,i2.iN and returns output o1,o2…on. Hadoop, Data Science, Statistics & othersįunction = myfun(i1,i2,i3.
0 Comments
Leave a Reply. |