comparison lib/ur/option.ur @ 844:74a1e3bdf430

Fix datatype import bug in Elaborate; fix server-side source setting; more standard library stuff
author Adam Chlipala <adamc@hcoop.net>
date Sun, 07 Jun 2009 16:45:00 -0400
parents 44c2c089ca15
children 0d30e6338c65
comparison
equal deleted inserted replaced
843:9f0ea203a1ca 844:74a1e3bdf430
2 2
3 fun isSome [a] x = 3 fun isSome [a] x =
4 case x of 4 case x of
5 None => False 5 None => False
6 | Some _ => True 6 | Some _ => True
7
8 fun mp [a] [b] f x =
9 case x of
10 None => None
11 | Some y => Some (f y)