dirs = [ 'mem', 'alloc', ] foreach dir: dirs subdir(dir) endforeach