Skip to main content

patch_seq_bi

Function patch_seq_bi 

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

bi: Apply two quotations to the same value.

Stack effect: ( ..a x quot1 quot2 โ€“ ..c ) where quot1 : ( ..a x โ€“ ..b ) quot2 : ( ..b x โ€“ ..c )

Equivalent to: >aux keep aux> call

ยงSafety

  • Stack must have at least 3 values (quot2 on top, quot1 below, value below that)
  • Top two stack values must be Quotations or Closures