home search about rss feed twitter ko-fi

Using case Statements Where a Function Is Expected (Scala 3 Video)

In this free Scala video training lesson, I show how you can use a series of one or more case statements wherever a function or anonymous function is expected. This is just like using a match/case expression, but in this specific use case you don’t have to use the match keyword, you just use the case statements.

In the process I talk about several other things, including anonymous functions, named functions (i.e., regular functions), collect, map, Option, and flatten.

Update: All of my new videos are now on
LearnScala.dev