How do I convert a list into a list of arguments?

Submitted by javelin on Sun, 2012-02-12 22:20

How can I convert a standard space-separated list of integer values into a list of arguments that can be passed to a function that accepts an indeterminate number arguments, such as add() or max()?

2006-Jun-29 12:29pm misfit815

The answer is in Section 14.5 of Amberyl\'s MUSH manual. The use of fold() is necessary.

2006-Jun-29 1:23pm misfit815

If you want to pass a space-separated list of numbers to a math function, lmath() can be used instead of fold().

2007-Jan-29 12:05pm shawnw