Handbook
Glossary
ipv6-ntoa ( integer -- ip )
Vocabulary
ip-parser
Inputs
integer
an
object
Outputs
ip
an
object
Definition
USING:
endian
grouping
hex-strings
kernel
regexp
sequences
;
IN:
ip-parser
:
ipv6-ntoa
( integer -- ip )
16
>be
bytes>hex-string
4
<groups>
[
[
48
=
]
trim-head
]
map
":"
join
R/ [:][:]+/
"::"
re-replace
;