Scala3 — Convert to and from Java collections in Scala code — scala.jdk.CollectionConverters._Since Scala can run on the Java Virtual Machine and interoperate with java code and classes, therefore it is important to have some…Dec 11, 2023Dec 11, 2023
Scala — Try classThe Scala “Try” type is similar to Either and Option types in that it can have one of two instance types: Failure or Success. The Try type…Oct 31, 2023Oct 31, 2023
Scala — Either classIn Scala, Either is a class in the scala.util package which can hold one of two possible values: Left or Right, but not both (disjoint…Oct 23, 2023Oct 23, 2023
Scala — Option classLets talk about the Option class in the root scala package.Oct 18, 2023Oct 18, 2023
Scala — Why learn functional programming?Functional programming is about writing programs declaratively. In functional programming, you tell what you want in the form of…Oct 12, 20231Oct 12, 20231
Scala — Lists: corresponds functionIn this article I will discuss the ‘corresponds’ function of Lists in scala and attempt to show how precise and succinct functional…Oct 10, 2023Oct 10, 2023
Scala — call-by-name vs call-by-valueIn Scala, there are two different ways to call a function. These different types of function calls have to do with the sequence in which…Oct 10, 2023Oct 10, 2023
Scala collections: The Iterator trait explainedIterators are data structures that enable traversing a sequence of elements. An iterator does not always have to be backed by a collection…Oct 5, 2023Oct 5, 2023
Java 19 — Virtual Threads; a solution to application scalabilityJava 19 introduced virtual threads which enable the client to execute as many threads in parallel as required without being limited by the…Apr 18, 20231Apr 18, 20231
Scala — What is a LazyList and when to use it?A LazyList is a theoretically infinite List i.e. it is a data structure designed to represent a stream of data (hence it is similar to…Apr 12, 2023Apr 12, 2023