Skip to content

Commit

Permalink
XML comment for Option.AsReadonlyList() (#155)
Browse files Browse the repository at this point in the history
Had to look this one up (I started forgetting...), so adding a comment
:D
  • Loading branch information
KaliCZ authored Sep 25, 2023
2 parents ec43864 + 2c4c210 commit 5c257f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/FuncSharp/Option/Option.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ public Option<B> FlatMap<B>(Func<A, B?> f) where B : struct
return Option<B>.Empty;
}

/// <summary>
/// For empty option, returns an empty list.<br/>
/// For non-empty option, returns a single-item list with the option value.
/// </summary>
[Pure]
public IReadOnlyList<A> AsReadOnlyList()
{
Expand Down

0 comments on commit 5c257f5

Please sign in to comment.