Evaluated proc rlist sub { set json [json2dict [wget http://www.reddit.com/r/$sub.json]]; set out ""; for {set i 0} {$i < [llength [lindex $json 3 3]]} {incr i} { set jcur "3 3 $i 3"; append out "[rval name $jcur]\n[rval title $jcur]\n[rval selftext $jcur]\nby [rval author $jcur]\n" }; . $out }