Bilješka
Pristup ovoj stranici zahtijeva provjeru vjerodostojnosti. Možete pokušati da se prijavite ili promijenite direktorije.
Pristup ovoj stranici zahtijeva provjeru vjerodostojnosti. Možete pokušati promijeniti direktorije.
Fully qualified name: Std.Arrays.ColumnAt
function ColumnAt<'T>(column : Int, matrix : 'T[][]) : 'T[]
Summary
Extracts a column from a matrix.
Description
This function extracts a column in a matrix in row-wise order. Extracting a row corresponds to element access of the first index and therefore requires no further treatment.
Type Parameters
'T
The type of each element of matrix.
Input
column
Column of the matrix
matrix
2-dimensional matrix in row-wise order
Example
let matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
let column = ColumnAt(0, matrix);
// same as: column = [1, 4, 7]