diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-06-07 16:45:00 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-06-07 16:45:00 -0400 |
commit | 3d7820916ae84710cab458c6b4ba9b1412ee3f5d (patch) | |
tree | 30300e247037398cd77a827ae1c38b96d19baec7 /lib/ur/list.ur | |
parent | 818577c761fb4d2ebbddbeb614bfbf33e38b92f6 (diff) |
Fix datatype import bug in Elaborate; fix server-side source setting; more standard library stuff
Diffstat (limited to 'lib/ur/list.ur')
-rw-r--r-- | lib/ur/list.ur | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/ur/list.ur b/lib/ur/list.ur index 771cddc3..60cd7316 100644 --- a/lib/ur/list.ur +++ b/lib/ur/list.ur @@ -171,3 +171,15 @@ fun all [m] f = in all' end + +fun app [m] (_ : monad m) [a] f = + let + fun app' ls = + case ls of + [] => return () + | x :: ls => + f x; + app' ls + in + app' + end |