{ $description "Defines documentation for a word." }
{ $examples
{ $code
- "USING: help help.markup help.syntax math syntax ;"
+ "USING: help help.markup help.syntax math ;"
": foo ( m -- n ) 2 + ;"
"HELP: foo"
"{ $values { \"m\" \"an integer\" } { \"n\" \"an integer\" } }"
{ $examples
"The " { $link append } " word has a specializer for the very common case where two strings or two arrays are appended:"
{ $code
- "USING: arrays hints sequences strings syntax ;"
+ "USING: arrays hints sequences strings ;"
"HINTS: append { string string } { array array } ;"
}
"Specializers can also be defined on methods:"
{ $code
- "USING: assocs hashtables hints kernel sequences"
- "syntax ;"
+ "USING: assocs hashtables hints kernel sequences ;"
"GENERIC: count-occurrences ( elt obj -- n )"
""
"M: sequence count-occurrences [ = ] with count ;"