Expand description
Quotation operations for Seq
Quotations are deferred code blocks (first-class functions). A quotation is represented as a function pointer stored as usize.
Re-exports§
pub use patch_seq_call as call;pub use patch_seq_push_quotation as push_quotation;pub use patch_seq_spawn as spawn;pub use patch_seq_times as times;pub use patch_seq_until_loop as until_loop;pub use patch_seq_while_loop as while_loop;
Functions§
- patch_
seq_ ⚠call - Call a quotation or closure
- patch_
seq_ ⚠peek_ is_ quotation - Check if the top of stack is a quotation (not a closure)
- patch_
seq_ ⚠peek_ quotation_ fn_ ptr - Get the impl_ function pointer from a quotation on top of stack
- patch_
seq_ ⚠push_ quotation - Push a quotation onto the stack with both wrapper and impl pointers
- patch_
seq_ ⚠spawn - Spawn a quotation or closure as a new strand (green thread)
- patch_
seq_ ⚠times - Execute a quotation n times
- patch_
seq_ ⚠until_ loop - Loop until a condition is true
- patch_
seq_ ⚠while_ loop - Loop while a condition is true