Support for List and Map

why not use the standard imperative style for loop?