ldelete - luxembourg/muxcode-clm GitHub Wiki

LDELETE()

FUNCTION: ldelete(<list>, <positions>[, <input delim> [, <output delim>]])

This function removes elements(s) from <list> at the given <positions>. Negative <positions> are relative to the end of the list. Elements of <list> are delimited by <input delim>. Elements of <positions> are always delimited by a space.

Elements of the returned list are separated by <output delim> which defaults to <input delim> which defaults to a space.

Examples: > say ldelete(This is not a test, 3) You say, "This is a test" > say ldelete(Yet@Another@Mundane@List, 3, @) You say, "Yet@Another@List" > say ldelete(lemon|orange|pear|apple,2 3,|) You say, "lemon|apple" > say ldelete(foo bar baz boing,3,,%b~%b) You say, "foo ~ bar ~ boing"

Related Topics: delete, extract, insert, remove, replace