comparison general/funutils/@function_handle/select.m @ 13:03694e5c8365

Reorganised some high order list functions to correct class-based method dispatch; fixed some docs.
author samer
date Wed, 16 Jan 2013 12:12:34 +0000
parents
children
comparison
equal deleted inserted replaced
12:fbc0540a9208 13:03694e5c8365
1 % select - Filter cell array with boolean test
2 %
3 % select :: (A->bool), {[N]->A} -> {[M]->A}.
4 % select :: (A->bool), {[1,N]->A} -> {[1,M]->A}.
5 %
6 % eg, select(@iseven,{1,2,3,4}) = {2,4}
7 function Y=select(fn,X), Y=cellfilt(fn,X);