annotate general/funutils/@function_handle/select.m @ 40:62304c930111

Reversed order of * function composition to match arrow * combinator.
author samer
date Tue, 29 Jan 2013 17:04:40 +0000
parents 03694e5c8365
children
rev   line source
samer@13 1 % select - Filter cell array with boolean test
samer@13 2 %
samer@13 3 % select :: (A->bool), {[N]->A} -> {[M]->A}.
samer@13 4 % select :: (A->bool), {[1,N]->A} -> {[1,M]->A}.
samer@13 5 %
samer@13 6 % eg, select(@iseven,{1,2,3,4}) = {2,4}
samer@13 7 function Y=select(fn,X), Y=cellfilt(fn,X);