foreach var,csv
Foreach operator. Looking through all items with the help of the foreach operator. An element in an object of the csv type is an array of strings arrstr. Each string is split into separate elements by the separator and these elements are written into the passed array.
csv mycsv
uint i k
...
foreach item, mycsv
{
print( "Item: \(++i)\n" )
fornum k = 0, *item
{
print( "\(item[k])\n")
}
}
foreach variable,csv {...}
Related links | Source |