Use b-string instead of array of b-chars
This commit is contained in:
parent
20c6b4c7cf
commit
3cdca1666a
|
@ -208,7 +208,7 @@ impl Value {
|
|||
Value::Str(s) => Functio::Eval(s),
|
||||
Value::Int(i) => Functio::BfFunctio {
|
||||
instructions: {
|
||||
let instruction_mappings = [b'[', b']', b'+', b'-', b',', b'.', b'<', b'>'];
|
||||
let instruction_mappings = b"[]+-,.<>";
|
||||
std::iter::successors(Some(i as usize), |i| {
|
||||
Some(i / instruction_mappings.len())
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue