|
|
|
|
|
by lptk
603 days ago
|
|
Genuine question, as I'm not up to date with C#'s recent developments: can C# do this? if e is
...
Lit(value)
and Map.find_opt(value) is Some(result)
then Some(result)
...
where the `...` may include many cases and may contain other Lit cases.Or this variation: ...
Lit(value)
and Map.find_opt(value) is Some(result)
and computation(result) is
Left(a) then ...
Right(b) then ...
...
|
|