I prefer this:

Code:
foreach %nick ($nick(#, rovha)) {
  echo -a %nick
}

foreach %address ($ial(#).all) {
  echo -a %address
}

foreach %line (@window) {
  echo -a %line
}

foreach %line ($readAll(readme.txt)) {
  echo -a %line
}

foreach %ini ($ini(file.ini).headers) { }

foreach %ini_items ($ini(file.ini, header).items) { }

foreach %key, %value ($hashtable(name)) {
  echo -a %key = %value
  ; automatically extracting the $hget(name, key) and its value, python dict style
}


Originally posted at http://www.mircscripts.org/forums.php?cid=4&id=157414#157414