summaryrefslogtreecommitdiff
path: root/demo/more/dlist.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-09-17 19:15:10 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-09-17 19:15:10 -0400
commit98bb7c3dffffb3a8b5d4f66fd919189004e22949 (patch)
tree43fabaf463b021f4e60ee562ba4a4a2da786682b /demo/more/dlist.ur
parente5e468f67bf1442ad295681039ce31e17931ba5d (diff)
Pseudo-sort working with filters
Diffstat (limited to 'demo/more/dlist.ur')
-rw-r--r--demo/more/dlist.ur6
1 files changed, 5 insertions, 1 deletions
diff --git a/demo/more/dlist.ur b/demo/more/dlist.ur
index 02286965..3d2cb49e 100644
--- a/demo/more/dlist.ur
+++ b/demo/more/dlist.ur
@@ -162,8 +162,12 @@ fun render [ctx] [ctx ~ body] [t] f (r : {Filter : t -> signal bool,
None => headPos dl
| Some prev => tailPos prev tl tlTop
in
+ b <- r.Filter v;
tl' <- signal tl;
- listOut (Some tl) tl' ((v, pos) :: acc)
+ listOut (Some tl) tl' (if b then
+ (v, pos) :: acc
+ else
+ acc)
end
in
listOut None hd []