diff --git a/src/env.rs b/src/env.rs index 522aa70..aa33e91 100644 --- a/src/env.rs +++ b/src/env.rs @@ -127,7 +127,7 @@ pub fn call_func(func: &MalType, args: &[MalType]) -> CallRet { _ => Err(MalErr::unrecoverable("Map argument must be string or key")), } } - M::Vector(v) => { + M::Vector(v) | M::List(v) => { if args.is_empty() { return Err(MalErr::unrecoverable("No key provided to Vector construct")); } diff --git a/test.mal b/test.mal deleted file mode 100644 index 78ba0bf..0000000 --- a/test.mal +++ /dev/null @@ -1 +0,0 @@ -(println *ARGV*)