ListPrepend()
Inserts an element at the beginning of a list.
ListPrepend( list=string, value=string, delimiters=string, includeEmptyFields=boolean );
Returns: String
Examples
//Simple Example
writeoutput(listPrepend("Susi,LAS,,lucee,,,test","Inserted"));
//Member Function
strList=",I,,love,lucee,,";
writeDump(strList.listPrepend("First"));
See also
- Lists
- Strings
- string.listPrepend()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)