diff options
author | 2008-11-06 17:09:53 -0500 | |
---|---|---|
committer | 2008-11-06 17:09:53 -0500 | |
commit | 36952b2e49afdb4ba8024eb6372992e4b5d8df7a (patch) | |
tree | 16401277a8c24a1bcfcc410700526f64ba27a5b8 /demo/tree.ur | |
parent | 49f721d39e46ab0635cc2e9a5ed2a66944586640 (diff) |
About to begin optimization of recursive transaction functions
Diffstat (limited to 'demo/tree.ur')
-rw-r--r-- | demo/tree.ur | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/demo/tree.ur b/demo/tree.ur new file mode 100644 index 00000000..06a30cf9 --- /dev/null +++ b/demo/tree.ur @@ -0,0 +1,15 @@ +table t : { Id : int, Parent : option int, Nam : string } + +open TreeFun.Make(struct + val tab = t + end) + +fun row r = <xml> + #{[r.Id]}: {[r.Nam]} +</xml> + +fun main () = + xml <- tree row None; + return <xml><body> + {xml} + </body></xml> |