- :string
- :block
- or :nothing
chop
remove last item from given collection
Parameters
chop collection :string :literal :block
Attributes
times | :integer | remove multiple items |
Returns
Examples
copyprint chop "books" ; book print chop chop "books" ; boo
copystr: "books" chop 'str ; str: "book"
copychop [1 2 3 4] ; => [1 2 3]
copychop.times: 3 "Arturo" ; Art