Refactor function signatures to use slices

This commit is contained in:
Michael Schimmel
2026-03-03 18:13:20 +01:00
parent 7c38dee243
commit 8c4db9a5ba
12 changed files with 262 additions and 209 deletions
+2 -2
View File
@@ -503,7 +503,7 @@ pub fn register(env: &Environment) {
ret: StaticType::Any, // In reality: Object(RecordSeries)
})),
Purity::Impure,
|args: std::vec::Vec<Value>| {
|args: &[Value]| {
if args.len() != 1 {
panic!("create-series expects exactly 1 argument (a record)");
}
@@ -525,7 +525,7 @@ pub fn register(env: &Environment) {
ret: StaticType::Void,
})),
Purity::Impure,
|args: std::vec::Vec<Value>| {
|args: &[Value]| {
if args.len() != 2 {
panic!("push-series expects exactly 2 arguments (series, record)");
}