Spec-Zone.ru › ColdFusion

listDeleteAt

Deletes an element from a list. Returns a copy of the list, without the specified element.

listDeleteAt(list, position [, delimiters]) → returns string

  • CF
  • Lucee
  • BL 1.0.0+
  • See Also: listGetAt listInsertAt listSetAt

    Argument Reference

    list string
    Required

    position numeric
    Required

    delimiters string
    Default: ,

    Examples
    Sample code invoking the listDeleteAt function

    Simple Example

    Deletes 2nd item from the list

    listDeleteAt("foo,bar,lorem,ipsum", 2)

    Expected Result: foo,lorem,ipsum

    Example with Custom Delimiter

    Deletes 2nd item from the list using a custom delimiter

    listDeleteAt("foo,bar|lorem,ipsum|me|something", 2, "|")

    Expected Result: foo,bar|me|something

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/listdeleteat

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API