KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I was wondering, is there any programming language where you can have function calls like this: function_name(parameter1)function_name_continued(parameter2); or function_name(param1)function_continued(param2)...function_continued(paramN); For example you could have this function call: int dist = distanceFrom(cityA)to(cityB); if you have defined distanceFromto function like this: int distanceFrom(city A)to(city B) { // find distance between city A and city B // ... return distance; } As far as I know, in C, Java and SML programming languages, this cannot be done. Are you aware of any programming language that let's you define and call functions in this way?
Tags (comma-separated)
Save Edits
Cancel