My favorites | Sign in
Project Logo
                
Search
for
Updated Apr 05, 2007 by cdiggins
Labels: Glossary, Primitive
Quote  
Explanation of the quote primitive function.

Quote

The quote primitive function pops a value from the stack, and pushes a nullary function that always returns that value onto the stack.

The quote instruction is key to higher-order functional programming, and is used in the definition of basic higher-order functions such as curry.

Type

quote : ('a -> ( -> 'a))

Sign in to add a comment
Hosted by Google Code