Handbook
Glossary
cols ( seq matrix -- cols )
Matrix operations
Prev:
col ( n matrix -- col )
Next:
cols-except ( matrix desc -- others )
Vocabulary
math
.
matrices
Inputs
seq
a
sequence
matrix
a
matrix
Outputs
cols
a
sequence
Word description
Get the columns from
matrix
listed by
seq
.
Examples
USING: math.matrices prettyprint ; { 0 1 } { { 1 2 } { 3 4 } } cols .
{ { 1 3 } { 2 4 } }
Definition
USING:
kernel
sequences
;
IN:
math.matrices
:
cols
( seq matrix -- cols )
[
col
]
curry
map
;
inline