Vocabulary
validators

Inputs
stra string
nan integer


Outputs
stra string


Word description
Throws a validation error if the string is shorter than n characters.

Definition


: v-min-length ( str n -- str )
over length over < [
[ "must be at least " % # " characters" % ] "" make
throw
] [ drop ] if ;