Implemented builtin functio division

pull/3/head
ondra05 2022-02-13 00:30:40 +01:00
parent 2ecb492356
commit 84f519a2e5
1 changed files with 4 additions and 1 deletions

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 {