diff options
author | Freya Murphy <freya@freyacat.org> | 2024-02-26 20:39:39 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-02-26 20:39:39 -0500 |
commit | 4438116264eeece05c9fdbdf73c8f33757a108e4 (patch) | |
tree | ac7a7128bbfac683f227db0727dc915f65492d09 /matrix-stdlib/src/iter.rs | |
parent | changes (diff) | |
download | matrix-4438116264eeece05c9fdbdf73c8f33757a108e4.tar.gz matrix-4438116264eeece05c9fdbdf73c8f33757a108e4.tar.bz2 matrix-4438116264eeece05c9fdbdf73c8f33757a108e4.zip |
sort n rand
Diffstat (limited to 'matrix-stdlib/src/iter.rs')
-rw-r--r-- | matrix-stdlib/src/iter.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/matrix-stdlib/src/iter.rs b/matrix-stdlib/src/iter.rs index 74056ce..630e52c 100644 --- a/matrix-stdlib/src/iter.rs +++ b/matrix-stdlib/src/iter.rs @@ -1,16 +1,10 @@ use std::{cell::RefCell, rc::Rc}; use matrix::{iter, vm::Vm, value::Value, Result, unpack_varargs, unpack_args}; use matrix_macros::native_func; -use crate::{error, VmArgs}; +use crate::{error, next, VmArgs}; use Value as V; -macro_rules! next { - ($vm:expr, $frame:expr, $iter:expr) => { - $vm.run_fn($frame, $iter.clone(), vec![]) - }; -} - #[native_func(1)] fn len(_: VmArgs, args: Vec<Value>) -> Result<Value> { let [value] = unpack_args!(args); |