aboutsummaryrefslogtreecommitdiffhomepage
path: root/demo/batchFun.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-02-28 13:06:10 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-02-28 13:06:10 -0500
commit703c91af7525838dff97f88245bf7482745e771e (patch)
tree514a47d371580960d255dd83a28303a9035c319b /demo/batchFun.ur
parentf59bbf0b942cd888c798c06ba6841bf94562a438 (diff)
Changing foldRX to mapX
Diffstat (limited to 'demo/batchFun.ur')
-rw-r--r--demo/batchFun.ur6
1 files changed, 3 insertions, 3 deletions
diff --git a/demo/batchFun.ur b/demo/batchFun.ur
index 3f0317a8..f665b132 100644
--- a/demo/batchFun.ur
+++ b/demo/batchFun.ur
@@ -72,7 +72,7 @@ functor Make(M : sig
| Cons (r, ls) => <xml>
<tr>
<td>{[r.Id]}</td>
- {@foldRX2 [colMeta] [fst] [_]
+ {@mapX2 [colMeta] [fst] [_]
(fn [nm :: Name] [p :: (Type * Type)] [rest :: {(Type * Type)}]
[[nm] ~ rest] m v =>
<xml><td>{m.Show v}</td></xml>)
@@ -88,7 +88,7 @@ functor Make(M : sig
<xml><dyn signal={ls <- signal lss; return <xml><table>
<tr>
<th>Id</th>
- {@foldRX [colMeta] [_]
+ {@mapX [colMeta] [_]
(fn [nm :: Name] [p :: (Type * Type)] [rest :: {(Type * Type)}]
[[nm] ~ rest] m =>
<xml><th>{[m.Nam]}</th></xml>)
@@ -144,7 +144,7 @@ functor Make(M : sig
<table>
<tr> <th>Id:</th> <td><ctextbox source={id}/></td> </tr>
- {@foldRX2 [colMeta] [snd] [_]
+ {@mapX2 [colMeta] [snd] [_]
(fn [nm :: Name] [p :: (Type * Type)] [rest :: {(Type * Type)}]
[[nm] ~ rest] m s =>
<xml><tr> <th>{[m.Nam]}:</th> <td>{m.Widget s}</td> </tr></xml>)