Handbook
Glossary
parse-genre ( string -- n/f )
Vocabulary
id3
.
private
Inputs
string
an
object
Outputs
n/f
an
object
Definition
USING:
kernel
math
math.parser
sequences
splitting
;
IN:
id3.private
:
parse-genre
( string -- n/f )
dup
"("
?head-slice
drop
")"
?tail-slice
drop
string>number
dup
number?
[
genres
?nth
or*
]
[
drop
]
if
;