You are viewing a single comment's thread. Return to all comments →
def take(arr,pos=1) return [] if pos >= arr.length return arr[(pos)..(arr.length)] end
Seems like cookies are disabled on this browser, please enable them to open this website
Ruby - Methods - Arguments
You are viewing a single comment's thread. Return to all comments →
def take(arr,pos=1) return [] if pos >= arr.length return arr[(pos)..(arr.length)] end