Skip to content
Snippets Groups Projects
Commit 0dcb7fc3 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

columns added

Rev: lib/modules/Array.pmod:1.5
parent 5a7ab60e
Branches
Tags
No related merge requests found
...@@ -166,3 +166,9 @@ array uniq(array a) ...@@ -166,3 +166,9 @@ array uniq(array a)
return indices(mkmapping(a,a)); return indices(mkmapping(a,a));
} }
array columns(array x, array ind)
{
array ret=allocate(sizeof(ind));
for(int e=0;e<sizeof(ind);e++) ret[e]=column(x,ind[e]);
return ret;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment