Implemented builtin functio division

This commit is contained in:
Erin 2022-02-13 00:30:40 +01:00 committed by ondra05
parent 0ac507e3b3
commit 56c9ccdf38

View file

@ -784,7 +784,10 @@ impl ops::Div for Value {
.collect(),
}
}
Functio::Builtin(_) => todo!(),
Functio::Builtin(b) => Functio::Builtin(BuiltinFunctio {
arity: b.arity + rhs.into_i32() as usize,
..b
}),
Functio::Chain { functios, kind } => {
let functios = *functios;
Functio::Chain {