How is it possible to convert a F# pattern-matching with when-condition to Scala?
I have the following code in F#:
match t0, t1 with
| "a", _ -> true
| b, "a" when not (b = "c") -> false
There is another post on this topic Scala: Pattern matching when one of two items meets some condition, but I can’t get the baseline.
I’m not very familiar with F#, but looks like it should be almost 1:1 conversion. Here is Scala version: