We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8627909 commit c1291f2Copy full SHA for c1291f2
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 91997e79aae73472704248eb0a5089a79b4d3e83
+refs/heads/master: b16d9019a8c0b0e7950bd897e8b59136c2d98642
trunk/src/lib/option.rs
@@ -45,7 +45,7 @@ Function: is_none
45
46
Returns true if the option equals none
47
*/
48
-fn is_none<T>(opt: t<T>) -> bool {
+pure fn is_none<T>(opt: t<T>) -> bool {
49
alt opt { none. { true } some(_) { false } }
50
}
51
@@ -54,7 +54,7 @@ Function: is_some
54
55
Returns true if the option contains some value
56
57
-fn is_some<T>(opt: t<T>) -> bool { !is_none(opt) }
+pure fn is_some<T>(opt: t<T>) -> bool { !is_none(opt) }
58
59
/*
60
Function: from_maybe
0 commit comments