We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Ruby - Methods - Variable Arguments
Ruby - Methods - Variable Arguments
Sort by
recency
|
52 Discussions
|
Please Login in order to post a comment
I way overthought this problem, but the problems are often written poorly and this one definitely was. Don't overthink this and you will find the solution quite easily.
Ruby Compiled solutions https://github.com/LinaOrmos/Ruby/tree/main
def full_name(first, *rest) first + " " + rest.join(" ") end