drop

drop first *number* of elements from given collection and return the remaining ones


Parameters

drop collection :string :literal :block
     number :integer

Returns

  • :string
  • :block
  • or  :nothing

Examples

copy
str: drop "some text" 5 print str ; text

copy
arr: 1..10 drop 'arr 3 ; arr: [4 5 6 7 8 9 10]

Related