Handbook
Glossary
v-default ( str def -- str/def )
Form validators
Next:
v-optional ( str quot -- result )
Vocabulary
validators
Inputs
str
a
string
def
a
string
Outputs
str/def
a
string
Word description
If the input string is not specified, replaces it with the default value.
Definition
USING:
kernel
sequences
;
IN:
validators
:
v-default
( str def -- str/def )
[
drop
empty?
not
]
most
;