From a9a9cc71e11fd7e7c02371180dfe6d545f558bcc Mon Sep 17 00:00:00 2001 From: Erin Date: Sun, 13 Feb 2022 00:30:40 +0100 Subject: [PATCH] Implemented builtin functio division --- ablescript/src/variables.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ablescript/src/variables.rs b/ablescript/src/variables.rs index dbe6c28..60487df 100644 --- a/ablescript/src/variables.rs +++ b/ablescript/src/variables.rs @@ -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 {