How to write a function to accept any type of parameter instead of writing different function for different parameter type. I am facing this situation because i need to do same functionality for different types of parameter.
Use AnyObjects or Generics depends on ur requirement.
I am facing situation to use external parameter name to a function parameter name .. How to achieve this
How to set return type for function in SWIFT.
How to declare single parameter which accept multiple values.
How to use default values for parameter in function. What will happens when value is not passed for a default parameters.
Is it possible to set multiple return type for function in SWIFT. If yes please provide me syntax .