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
Post a Comment