This commit is contained in:
Erin 2021-12-07 21:20:16 +01:00 committed by ondra05
parent 65bb29d401
commit 6889c3f3b2

View file

@ -449,6 +449,7 @@ impl ops::Not for Value {
tape_len, tape_len,
} => { } => {
instructions.reverse(); instructions.reverse();
Functio::BfFunctio { Functio::BfFunctio {
instructions, instructions,
tape_len, tape_len,
@ -460,6 +461,7 @@ impl ops::Not for Value {
} => { } => {
params.reverse(); params.reverse();
body.reverse(); body.reverse();
Functio::AbleFunctio { params, body } Functio::AbleFunctio { params, body }
} }
Functio::Eval(code) => Functio::Eval(code.chars().rev().collect()), Functio::Eval(code) => Functio::Eval(code.chars().rev().collect()),