forked from: Iterating elements in member and local variables

