forked from xxq250/Nasal-Interpreter
⚡ optimize lib.nas
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# lib csv.nas
|
||||
# ValKmjolnir 2022/10/15
|
||||
use std.io;
|
||||
|
||||
var read = func(path, delimeter=",", endline="\n") {
|
||||
var context = io.readfile(path);
|
||||
context = split(endline, context);
|
||||
@@ -13,4 +15,4 @@ var read = func(path, delimeter=",", endline="\n") {
|
||||
property: context[0],
|
||||
data: context[1:]
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user