I see many sources which are titled pattern matching in Scala, but they only discuss match expressions. Is pattern matching in Scala used only in match expressions? Can someone provide a clear understanding of pattern matching versus match expression in Scala?
Should I consider pattern matching a much vaster concept than match expressions? And consider match expression only one of the usages of pattern matching? or in Scala the 2 concepts are thought of as synonyms?