diff options
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 13cefc39..57e61c38 100644 --- a/demo/tcSum.ur +++ b/demo/tcSum.ur @@ -1,6 +1,6 @@ -fun sum (t ::: Type) (_ : num t) (fs ::: {Unit}) (fl : folder fs) (x : $(mapU t fs)) = +fun sum [t] (_ : num t) [fs ::: {Unit}] (fl : folder fs) (x : $(mapU t fs)) = foldUR [t] [fn _ => t] - (fn (nm :: Name) (rest :: {Unit}) [[nm] ~ rest] n acc => n + acc) + (fn [nm :: Name] [rest :: {Unit}] [[nm] ~ rest] n acc => n + acc) zero [fs] fl x fun main () = return <xml><body> |