Am 14.02.2012 um 15:05 schrieb Jordi Gutiérrez Hermoso: > These all seem like very trivial wrappers to cellfun. Or not even > cellfun, a lot of this can already be done with boolean indexing:
Ok, so it seems that the examples did little to elucidate what I wanted to do with these functions, namely to use cell arrays as general purpose containers from which elements can be picked using general functions, and no loops. > It seems like Smalltalk likes function names that end with "ect". I > didn't know this. Smalltalk doesn't have any function names at all. Select, for example, is just a message you can send to any SequenceableCollection along with a code block, and the collection itself will then iterate over all its components and aggregate matching members in a collection of the same type. Unfortunately, we don't have too many types of collections in Octave. >> accumulating results of repeated function evaluations (inject_into), > > accumarray? Will this do something like inject_into (@(x, y){x{:},rand(y)},num2cell(1:10),{}) Really, all those functions are meant for the most part to provide ways to get away without loops, maybe to avoid indexing errors along the way, even when objects are complex, and predicates ignorant about of (cell) arrays. Nothing more, and nothing less. I really liked the ease of use with collections in Smalltalk, but then again I'm too nostalgic, maybe? Later, Alex -- Dr. Alexander Klein, Diplom-Mathematiker Physiologisches Institut | TransMIT-Bereich Raum 543 | für Mathematische Analysen | und Feld-Simulationen Aulweg 129 | Heinrich-Buff-Ring 44 35392 Giessen | 35392 Giessen ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev