Handbook
Glossary
collect-sources ( sources vertices inputs -- seq )
Vocabulary
game
.
models
.
collada
.
private
Inputs
sources
a
hashtable
vertices
a
pair
inputs
a
tag
Outputs
seq
a
sequence
Word description
Look up the sources for these
input
elements and return a sequence of
source
tuples.
Definition
USING:
assocs
kernel
math.parser
sequences
sequences.deep
;
IN:
game.models.collada.private
::
collect-sources
( sources vertices inputs -- seq )
inputs
[|
input |
input
"source"
x@
rest
vertices
first
=
[
vertices
second
[|
vertex |
vertex
first
input
"offset"
x@
string>number
vertex
second
rest
sources
at
source
boa
]
map
]
[
input
[
"semantic"
x@
]
[
"offset"
x@
string>number
]
[
"source"
x@
rest
sources
at
]
tri
source
boa
]
if
]
map
flatten
;