mirror of
https://github.com/bearlanguageorg/bear.git
synced 2026-08-26 15:37:18 +00:00
More buildins and vscode exstention <CO-AUthored, ai>
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// 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)
|
||||
}
|
||||
Reference in New Issue
Block a user