diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-02-24 15:38:01 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-02-24 15:38:01 -0500 |
commit | 4f172cc3cd29894ec3989f5a43b40efca1da781b (patch) | |
tree | 8bec27c38f3de514ebe12b02407a0eb7c935f82d /demo/tcSum.ur | |
parent | a609e91b959d905fc10554e97df153c09769ec90 (diff) |
Folder generation for functions
Diffstat (limited to 'demo/tcSum.ur')
-rw-r--r-- | demo/tcSum.ur | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demo/tcSum.ur b/demo/tcSum.ur index e3340021..080de173 100644 --- a/demo/tcSum.ur +++ b/demo/tcSum.ur @@ -4,6 +4,6 @@ fun sum (t ::: Type) (_ : num t) (fs ::: {Unit}) (fl : folder fs) (x : $(mapUT t zero [fs] fl x fun main () = return <xml><body> - {[sum (Folder.cons [#A] [()] ! (Folder.cons [#B] [()] ! Folder.nil)) {A = 0, B = 1}]}<br/> - {[sum (Folder.cons [#D] [()] ! (Folder.cons [#C] [()] ! (Folder.cons [#E] [()] ! Folder.nil))) {C = 2.1, D = 3.2, E = 4.3}]} + {[sum {A = 0, B = 1}]}<br/> + {[sum {C = 2.1, D = 3.2, E = 4.3}]} </body></xml> |