diff options
author | 2009-06-06 15:29:34 -0400 | |
---|---|---|
committer | 2009-06-06 15:29:34 -0400 | |
commit | 218d3c311c2ebd1e5b511acfd6579c9cbab47998 (patch) | |
tree | 7fa1f1bba387c1d98289cf2bb1fd8fdd717bb55f /lib/ur/list.ur | |
parent | 3ad616e1188527cfd92bf322d5884fa633d40208 (diff) |
Fix unbound name problem in Jscomp injectors; more List stuff
Diffstat (limited to 'lib/ur/list.ur')
-rw-r--r-- | lib/ur/list.ur | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/ur/list.ur b/lib/ur/list.ur index 0aae9010..89dc8bbd 100644 --- a/lib/ur/list.ur +++ b/lib/ur/list.ur @@ -150,3 +150,14 @@ fun search [a] [b] f = search' end +fun foldlM [m] (_ : monad m) [a] [b] f = + let + fun foldlM' acc ls = + case ls of + [] => return acc + | x :: ls => + acc <- f x acc; + foldlM' acc ls + in + foldlM' + end |