# HG changeset patch # User Adam Chlipala # Date 1399118385 14400 # Node ID cfd604842006cb6fc90131ada44a5bcf9a7e38f1 # Parent 403f0cc65b9c87ce5b77e456b1cb4d9addc01680 A .urs comment about [queryL*] diff -r 403f0cc65b9c -r cfd604842006 lib/ur/top.urs --- a/lib/ur/top.urs Fri May 02 19:19:09 2014 -0400 +++ b/lib/ur/top.urs Sat May 03 07:59:45 2014 -0400 @@ -155,6 +155,10 @@ -> r ::: {K} -> folder r -> $(map tf1 r) -> $(map tf2 r) -> $(map tf3 r) -> xml ctx [] [] +(* Note that the next two functions return elements in the _reverse_ of the natural order! + * Such a choice interacts well with the time complexity of standard list operations. + * It's easy to regain the natural order by inverting a query's 'ORDER BY' condition. *) + val queryL : tables ::: {{Type}} -> exps ::: {Type} -> [tables ~ exps] => sql_query [] [] tables exps