Implemented not for built-in functios
This commit is contained in:
parent
aa94ae57d8
commit
5d5c66fb3c
|
@ -838,7 +838,13 @@ impl ops::Not for Value {
|
|||
|
||||
Functio::Able { params, body }
|
||||
}
|
||||
Functio::Builtin(_) => todo!(),
|
||||
Functio::Builtin(b) => {
|
||||
let arity = b.arity;
|
||||
Functio::Builtin(BuiltinFunctio::new(
|
||||
move |args| b.call(&args.iter().cloned().rev().collect::<Vec<_>>()),
|
||||
arity,
|
||||
))
|
||||
}
|
||||
Functio::Chain { functios, kind } => {
|
||||
let (a, b) = *functios;
|
||||
Functio::Chain {
|
||||
|
|
Loading…
Reference in a new issue