Draft placeholder of some potentially useful helper functions for iterators/traversals/iterables - from other languages (underscorejs/ruby)