#case-classes

[ follow ]
scala
Scalac - Software Development Company - Akka, Kafka, Spark, ZIO
1 month ago
Scala

Scala 3 Data Transformation Library: ducktape 0.2.0.

Ducktape is an automatic and customizable compile-time transformation tool for case classes and sealed traits/enums in Scala.
The name 'ducktape' signifies its potential to generate glue code, despite being originally intended as 'ducttape'. [ more ]
Medium
2 months ago
Scala

Pattern Matching Magic

Pattern matching is a powerful feature in Scala for value comparisons and deconstructing values.
Scala uses match expressions for pattern matching, allowing for checking values against various patterns like constants, constructors, and more. [ more ]
Medium
2 months ago
Scala

Destructuring Assignment, Nested deconstruction-Part 2/2

Kotlin uses componentN function to unpack values from an object.
Scala's case classes have helpful methods like apply, unapply for deconstruction. [ more ]
Medium
2 months ago
Scala

Programming in Scala [Chapter 24]-Extractors

Extractors generalize pattern matching beyond case classes
Scala's extractors enable defining new patterns for existing types [ more ]
morescala
Medium
5 months ago
Scala

Programming in Scala [Chapter 15]-Case Classes and Pattern Matching

Case classes and pattern matching are essential constructs in Scala.
Case classes make pattern matching convenient and provide syntactic conveniences.
Pattern matching allows for the simplification of complex data structures. [ more ]
Medium
5 months ago
Scala

Spark-Scala: Overcoming UDF Limitations with More Than 22 Parameters

Utilize case classes to overcome the limitation of creating a UDF with more than 22 parameters in Spark Scala.
Design a method with a single parameter of type Row and encapsulate multiple columns within a struct to pass to the UDF. [ more ]
[ Load more ]