Question: Infinite number of parameters - how?

How do I allow an infinite amount of parameters (...rest parameters don't seem to exist in Maple) such as the ones in the piecewise procedure (except for the optional parameter)?

piecewise(cond_1, f_1, cond_2, f_2, ..., cond_n, f_n, f_otherwise)

Please Wait...