Scala – Pattern Matching
Pattern matching allows you to check a value against a given pattern. It is similar to Java and C++ switch statement, but it’s more powerful. …
Scala Programing Tutorials
Pattern matching allows you to check a value against a given pattern. It is similar to Java and C++ switch statement, but it’s more powerful. …
In this tutorial, you will learn about the very important concept of Algebraic Data Types (ADT) in Scala. Let’s begin with what we already know, …
In this tutorial, you will learn how to parse JSon literals into Circe Json and then use a Decoder to decoder the Circe Json into …
In the previous two tutorials, we learnt how to build encoders and decoders. We used the forProductN(applicative-based decoders) and for comprehension (monadic decoders) to build …
In the previous two tutorials, we covers how to build Json encoders in Scala using Circe. You can review them here: Scala – Json Encoding …
In the preceding tutorial, we explained how Json Decoding with Circe works in Scala. We also learnt how to create and manipulated Json values including …
In this tutorial series, you will learn how to build an encoder to encode Scala types into Json representations. We’ll first see how to used …
Similar to an interface, a trait in Scala is a collection of abstract and non-abstract methods. A trait can be created with all of its …
In this lesson, you will learn how to us arrays in Scala. Array in Scala works similar to arrays in Java, so let’s go ahead …
In this lesson, you will learn about how to manipulate strings in Scala. Strings in Scala just like in Java are immutable, meaning that they …