Exploring LLM Efficiency and Innovation: A Thoughtful ConversationAs the field of artificial intelligence (AI) continues to evolve, we’re constantly faced with questions about optimizing performance…2d ago2d ago
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