# How do I use the output of Range as the input arguments of another function? [duplicate]

This question already has an answer here:

If I enter LCM[1,2,3,4,5] 60 is returned. if I enter LCM[Range[5]] {1,2,3,4,5} is returned.

I think I understand why it returns a list. (because it is treating the list as one argument?)

How can I use the output from the Range function act as individual arguments in the LCM function? How do I change LCM[Range[5]] so that it too returns 60?

## marked as duplicate by Kuba♦ list-manipulation StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Feb 12 at 19:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

## 1 Answer

Use Apply, or its short form @@:

LCM @@ Range[5]
(* 60 *)