From 9cc61497ed8a2336f33407d3262181e4ac3b46cb Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Wed, 17 Jan 2024 23:28:48 +0100 Subject: add commonsense and expression_functions --- src/function.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/function.rs') diff --git a/src/function.rs b/src/function.rs index 442d987..0da4574 100644 --- a/src/function.rs +++ b/src/function.rs @@ -16,6 +16,10 @@ impl FunctionArgument { pub fn len(&self) -> usize { self.args.len() } + + pub fn data(&self) -> &[Complex] { + &self.args + } } pub trait Function { @@ -24,7 +28,7 @@ pub trait Function { #[macro_export] macro_rules! functions { - ({$($x:expr => $y:expr), *}) => { + {$($x:expr => $y:expr), *} => { { let mut h : HashMap> = HashMap::new(); $( -- cgit v1.2.3-70-g09d2