- whatever your way was to create a list of values, iterators iterate over a list
- for every list member (a single value or a tuple) the return clause is evaluated
forall [ $d is-a document ]
return ( $d, $d / bn)
forall $b in ("Huey", "Dewey", "Louie")
return ( "Donald Ducks nephew is $b" )- here sorting can be done: sort by $b
- making lists unique (NOTE: this is unkosher, move this into a function?)
- sorting can be done according to an variable in the scope
forall [ $d is-a document ]
return ( $d, $d / bn)
sort by $d / in (publication-date)