take

keep firstof elements from given collection and return the remaining ones


Parameters

take collection :string :literal :block :range
     number :integer

Returns

  • :string
  • :block
  • or  :nothing

Examples

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

copy
arr: 1..10 take 'arr 3 ; arr: [1 2 3]

Related