diff --git a/src/FuncSharp/Option/Option.cs b/src/FuncSharp/Option/Option.cs index 6e7a7f4..9971262 100644 --- a/src/FuncSharp/Option/Option.cs +++ b/src/FuncSharp/Option/Option.cs @@ -212,6 +212,10 @@ public Option FlatMap(Func f) where B : struct return Option.Empty; } + /// + /// For empty option, returns an empty list.
+ /// For non-empty option, returns a single-item list with the option value. + ///
[Pure] public IReadOnlyList AsReadOnlyList() {