Implemented foreach and fold(l) operations for views.