5 public static Maybe
<T
> C
<T
> (T
value)
13 public Maybe (T
value)
18 static class Extensions
{
19 public static R Match
<T
,R
>(this T self
, params Func
<T
,Maybe
<R
>>[] matchers
)
26 public static void Main ()
28 Extensions
.Match ("a", s
=> Maybe
.C(s
));
29 Extensions
.Match ("a", s
=> Maybe
.C(s
), s
=> Maybe
.C("a"));