• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

ListPrepend

Synopsis

                    ListPrepend(list, element [, delimiters])

Prepends element to the beginning of list. An optional delimiter can be specified if the list is delimited with a character other than the comma (the default). The following example appends an element to the beginning of a list:

<cfset MyList = "Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday">
<cfset MyprependedList = ListPrepend(MyList, 'Monday')>
   
<cfoutput>
<b>List:</b>  #MyList#<br>
<b>Prepended List:</b> #MyPrependedList#
</cfoutput>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint