Hello list,

the other day I lashed up some functions that mimick what I always liked so 
much about the Smalltalk-80 way to deal with collections, for example 
injectInto, which allows one to write:

a=num2cell(randn(7));
injectInto( a, -70, @(x, y) ( x + y ) )

instead of:

a=num2cell(randn(7));
-70+sum(cell2mat(vec(a)))

The example is admittedly somewhat lame, but would anyone be interested in this 
thing? There's also select, reject, and detect for sorting out things.

Kind regards,

        Alex

-- 
          Dr. Alexander Klein, Diplom-Mathematiker

Physiologisches Institut       |               TransMIT Zentrum
Raum 543                       |        für Numerische Methoden
Aulweg 129                     |          Heinrich-Buff-Ring 44
35392 Giessen                  |                  35392 Giessen


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to