Raven Manual - Function Definitions
The word define ( -- ) creates a new function or word.
define greeting
"hello world\n" print
The word use ( i -- ) is actually a synonym of as, and reads well for describing and accessing a definitions's arguments from the stack, importing them into the local variable scope.
define custom_greeting use $text $text "%s\n" format print
|