Handbook
Glossary
output-shape ( sa0 sa1 -- shape )
Vocabulary
arrays
.
shaped
Inputs
sa0
an
object
sa1
an
object
Outputs
shape
an
object
Definition
USING:
accessors
kernel
math
math.order
sequences
;
IN:
arrays.shaped
:
output-shape
( sa0 sa1 -- shape )
[
shape>>
]
bi@
[
2dup
[
zero?
]
either?
[
max
]
[
2drop
0
]
if
]
2map
;