Python has map, reduce, lambda, and list comprehension. Ruby has select, collect, reject, inject, and block.
These techniques allow programmers to perform operations on lists (or dict/hash) effectively. Some of these are not optimized for speed, so do not expect much on speed gain.
Both have set type, collection of distinct values. Set and List/Array are cast able bi-directionally.












