2008-08-29 01:00:41 -04:00
|
|
|
USING: kernel words help.markup help.syntax ;
|
|
|
|
IN: alias
|
|
|
|
|
|
|
|
HELP: ALIAS:
|
|
|
|
{ $syntax "ALIAS: new-word existing-word" }
|
|
|
|
{ $values { "new-word" word } { "existing-word" word } }
|
|
|
|
{ $description "Creates a " { $snippet "new" } " inlined word that calls the " { $snippet "existing" } " word." }
|
|
|
|
{ $examples
|
2008-08-30 12:42:41 -04:00
|
|
|
{ $example "USING: alias prettyprint sequences ;"
|
|
|
|
"IN: alias.test"
|
|
|
|
"ALIAS: sequence-nth nth"
|
|
|
|
"0 { 10 20 30 } sequence-nth ."
|
2008-08-29 01:00:41 -04:00
|
|
|
"10"
|
|
|
|
}
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|