Can I write a function that takes not just one type and/or returns not just one type.
Like;
function f1 takes both integer and string and it determines in function that what type of data it took then returns me specific thing for int and another specific thing for string. And f1 takes just one data.
it can be in this way:
i want a function : f1 which takes one input/data then if that input is integer, it will return square of that integer. but if it is string, it will return initial of the string.
i have an idea but i "do not want to use" this: first converting data to string then looking for is it digit or not then making process in f1 after that returning as a string. After all, looking again for digit and converting.