I'm pretty new to scala programming and would like to write a function returning a tuple instance by the arguments passed in. Here is what I mean:
def toTuple(strings : String*) = {
//some code to create a tuple, if possible
//the tuple should be consistent with the order the arguments were passed in
}
Is it possible to do so in scala?