clojure - Which term is used to describe functions with multiple “modes”? -


clojure's range function, example, has 4 modes:

usage: (range)        (range end)        (range start end)        (range start end step)  returns lazy seq of nums start (inclusive) end (exclusive), step, start defaults 0, step 1, , end infinity. 

is there adjective describe such functions?

i believe they're referred arity-overloaded functions, whereas variadic functions take unbounded number of arguments.

http://clojure.org/functional_programming

clojure supports arity overloading in single function object, self-reference, , variable-arity functions using &


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -