mirror of
https://github.com/bearlanguageorg/bear.git
synced 2026-08-26 14:57:18 +00:00
14 lines
421 B
Plaintext
14 lines
421 B
Plaintext
// csv.vr — comma-separated values parsing (part of the VuurRaaf stdlib).
|
|
//
|
|
// import csv
|
|
// let rows = csv.parse("name,age\namy,30\nbob,41")
|
|
// // rows == [["name", "age"], ["amy", "30"], ["bob", "41"]]
|
|
// println(rows[1][0]) // amy
|
|
//
|
|
// parse returns an array of rows; each row is an array of cell strings.
|
|
// Quoted fields, embedded commas and newlines are handled.
|
|
|
|
fn parse(s) {
|
|
return csv_parse(s)
|
|
}
|