# Define a variadic function that takes a variable number of arguments
# and returns their sum
def sum(*numbers)
numbers.inject(0, :+)
end
# Define a variadic function that takes a variable number of arguments
# and returns the maximum value
def max(*numbers)
numbers.max
end
# Define a variadic function that takes a variable number of arguments
# and returns an array of all the arguments
def to_array(*elements)
elements
end
Next: strings and runes