op_left

Function op_left 

Source
pub fn op_left(stack: &mut Stack) -> bool
Expand description

OP_LEFT: Extracts a left substring from the second-to-top item on the stack

Example: OP_LEFT([s, n]) -> [s[..n-1]] if n < len(s) OP_LEFT([s, n]) -> [s] if n >= len(s)

ยงArguments

  • stack - mutable reference to the stack