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