$instance ( element -- ) (original) (raw)

Vocabulary
help.markup

Inputs

element an array with shape { class }

Outputs
None

Word description
Produces the text "a class" or "an class", depending on the first letter of class.

Examples

{ $instance string } print-element

a
string

{ $instance integer } print-element

an
integer

{ $instance f } print-element

f

Definition

USING: sequences ;

IN: help.markup

: $instance ( element -- ) first ($instance) ;