Handbook
Glossary
v-mode ( str -- str )
Form validators
Prev:
v-credit-card ( str -- n )
Vocabulary
validators
Inputs
str
a
string
Outputs
str
a
string
Word description
Throws an error if
str
is not a valid XMode mode name.
Definition
USING:
kernel
sequences
xmode.catalog
;
IN:
validators
:
v-mode
( str -- str )
dup
mode-names
member?
[
"not a valid syntax mode"
throw
]
unless
;