diff lib/ur/top.urs @ 2206:c1a62ce47083

Merge.
author Ziv Scully <ziv@mit.edu>
date Tue, 27 May 2014 21:38:01 -0400
parents cfd604842006
children a3435112b83e
line wrap: on
line diff
--- a/lib/ur/top.urs	Tue May 27 21:15:53 2014 -0400
+++ b/lib/ur/top.urs	Tue May 27 21:38:01 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