patch_seq_pick_op

Function patch_seq_pick_op 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_pick_op(stack: Stack) -> Stack
Expand description

Pick: Copy the nth value to the top ( … xn … x1 x0 n – … xn … x1 x0 xn )

§Safety

Stack must have at least n+1 values (plus the index value).

§Errors

Sets runtime error if:

  • The top value is not an Int
  • n is negative
  • n exceeds the current stack depth