aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/ur/option.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-09-15 15:48:53 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-09-15 15:48:53 -0400
commitefa6f97eee79311cd06592ed0241acfc40561785 (patch)
tree47760017bfc37999184289878129fd3e64115e52 /lib/ur/option.ur
parent8e944e62818045b820f45776a396bc1b66ab3056 (diff)
Filters implementation type-checking
Diffstat (limited to 'lib/ur/option.ur')
-rw-r--r--lib/ur/option.ur5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ur/option.ur b/lib/ur/option.ur
index 1f044002..a22cf5b5 100644
--- a/lib/ur/option.ur
+++ b/lib/ur/option.ur
@@ -7,6 +7,11 @@ fun eq [a] (_ : eq a) =
| (Some x, Some y) => x = y
| _ => False)
+fun isNone [a] x =
+ case x of
+ None => True
+ | Some _ => False
+
fun isSome [a] x =
case x of
None => False