Handbook
Glossary
>n/label ( string -- byte-array )
Vocabulary
dns
Inputs
string
an
object
Outputs
byte-array
an
object
Definition
USING:
arrays
ascii
kernel
sequences
;
IN:
dns
:
>n/label
( string -- byte-array )
dup
[
ascii?
]
all?
[
unsupported-domain-name
]
unless
[
length
1array
]
[
]
bi
B{
}
append-as
;