Handbook
Glossary
hex-string? ( str -- ? )
Vocabulary
hex-strings
Inputs
str
a
string
Outputs
?
a
boolean
Word description
Tests if a string is a valid hexadecimal string.
Examples
USING: hex-strings prettyprint ; "abcdef" hex-string? .
t
USING: hex-strings prettyprint ; "meow" hex-string? .
f
Definition
USING:
sequences
;
IN:
hex-strings
:
hex-string?
( str -- ? )
[
hex-digit?
]
all?
;