Handbook
Glossary
parse-duration-of-sunshine ( str -- str' )
Vocabulary
metar
.
private
Inputs
str
an
object
Outputs
str'
an
object
Definition
USING:
formatting
kernel
math
math.parser
splitting
;
IN:
metar.private
:
parse-duration-of-sunshine
( str -- str' )
"98"
?head
drop
string>number
[
"no"
]
[
"%s minutes of"
sprintf
]
if-zero
"%s sunshine"
sprintf
;