Remove(): Difference between revisions

From TinyMUX
Jump to navigation Jump to search
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...
 
(No difference)

Latest revision as of 21:49, 25 November 2010


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"