block based operation on collections.