Remove()

From TinyMUX
Revision as of 21:49, 25 November 2010 by Ihavenomouth (talk | contribs) (New page: Category:Functions {{Function|remove(<list>, <word>[, <idelim>[, <odelim>]])}} Remove takes a list and a word, and returns the list, with the word deleted from it. <idelim> may be u...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


remove(<list>, <word>[, <idelim>[, <odelim>]])

Remove takes a list and a word, and returns the list, with the word deleted from it.

<idelim> may be used to specify an input delimiter other than a space.
<odelim> is the output delimiter.

Example

> say remove(this is a test, is)

You say, "this a test"

> say remove(You can't remove, this)

You say, "You can't remove"

> say remove(You can't remove multiple words, You can't)

You say, "#-1 CAN ONLY DELETE ONE ELEMENT"

> say remove(How about an o-separated list, w ab, o)

You say, "Hout an o-separated list"