- :string
- :block
- or :nothing
take
keep firstof elements from given collection and return the remaining ones
Parameters
take collection :string :literal :block :range number :integer
Returns
Examples
copystr: take "some text" 5 print str ; some
copyarr: 1..10 take 'arr 3 ; arr: [1 2 3]