Predefined function reference

csv_decode

A reference entry for csv_decode

Predefined function · data

csv_decode (string data[, function f]) ⇒ list

Reads a string which consists of comma separated values and splits them on new lines and commas into a list of lists of values. The optional f parameter specifies some function that receives the value of each column to the function and obtains it's return value. This makes it easy to work on CSV files. The function must have at least one parameter.