Ruby - Methods - Arguments

  • + 0 comments
    Your code here

    def take(arr,pos=1) return [] if pos >= arr.length return arr[(pos)..(arr.length)] end