Trim

angerangel edited this page Jan 7, 2013 · 1 revision
Clone this wiki locally

USAGE

   TRIM series /head /tail /auto /lines /all /with str

DESCRIPTION

Removes spaces from strings or nones from blocks or objects.

TRIM is an action value.

ARGUMENTS

  • series -- Series (modified) or object (made) (series! object! error! module!)

REFINEMENTS

  • /head -- Removes only from the head
  • /tail -- Removes only from the tail
  • /auto -- Auto indents lines relative to first line
  • /lines -- Removes all line breaks and extra spaces
  • /all -- Removes all whitespace
  • /with
    • str -- Same as /all, but removes characters in 'str' (char! string! binary! integer!)

#SOURCE

trim: make action! [  [
    {Removes spaces from strings or nones from blocks or objects.}
    series [series! object! error! module!] "Series (modified) or object (made)"
    /head "Removes only from the head"
    /tail "Removes only from the tail"
    /auto "Auto indents lines relative to first line"
    /lines "Removes all line breaks and extra spaces"
    /all "Removes all whitespace"
    /with str [char! string! binary! integer!] "Same as /all, but removes characters in 'str'"
] ]