Handbook
Glossary
parse-forecast-temperature ( str -- str' )
Vocabulary
metar
.
private
Inputs
str
an
object
Outputs
str'
an
object
Definition
USING:
formatting
kernel
sequences
splitting
;
IN:
metar.private
:
parse-forecast-temperature
( str -- str' )
2
cut
"/"
split1
[
"/"
append
parse-temperature
drop
]
[
"Z"
?tail
drop
"00"
append
parse-timestamp
]
bi*
[
"TX"
=
"maximum"
"minimum"
?
]
2dip
"%s temperature %s at %s"
sprintf
;