Learn how to use the zip(), zipAll(), and zipWithIndex() methods in Scala.
Also find me here:
Baeldung Editor
Dominique Plante
Dominique has over two decades of industry experience in several domains, including finance and health care. He is passionate about solving complex software and data problems and writing high-quality, testable code. He enjoys listening to music, and podcast, and running on and off the trails in his spare time.
Here's what I've reviewed (so far):
Baeldung on Scala
- All
- Scala Collections (24)
- Build Tools (9)
- Testing (8)
- Scala Basics (8)
- Libraries (7)
- Scala Core (5)
- Scala Concurrency (5)
- Scala Strings (4)
- Scala IO (4)
- Functional Programming (4)
- Akka (4)
- Scala Numbers (3)
- Scala Web (2)
- Scala Type System (2)
- Scala Exceptions (2)
- Scala Dates (2)
- Scala Pattern Matching (1)
- Play Framework (1)
- Persistence (1)
- Apache Spark (1)
Remove Special Characters From a String in Scala
Filed under Scala Strings
Learn how to remove special characters from a string in Scala.
Convert Integers Between Octal and Decimal Representations in Scala
Filed under Scala Numbers
Learn how to convert integers between octal and decimal representations in Scala
Repeat a Character Multiple Times in Scala
Filed under Scala Strings
Learn how to repeat a character or several characters multiple times in Scala.
Integration Testing with SBT
Filed under Build Tools
Learn how to do integration testing with SBT.
Convert a Number to Binary Representation in Scala
Filed under Scala Numbers
Learn how to convert a number to its binary representation in Scala.
Generate List of Dates Between a Range in Scala
Filed under Scala Dates
Learn how to generate a list of dates between the endpoint dates in a range.
Introduction to Scala-CLI
Filed under Build Tools, Scala Basics
An introduction to Scala-CLI.
Error Handling in Cats Effect
Filed under Scala Exceptions
Learn how to do error handling in Cats Effect.
Immutable Arrays in Scala 3 Using IArray
Filed under Scala Collections
Learn how to work with immutable arrays in Scala 3 using IArray.
Convert Epoch Milliseconds to DateTime in Scala
Filed under Scala Dates
Learn how to convert epoch milliseconds to DateTime in Scala.
Introduction to ZIO-HTTP
Filed under Scala Web
Learn how to use ZIO-HTTP with Scala.
Using the sliding() and grouped() Methods With Scala Collections
Filed under Scala Collections
Learn how to use the the sliding() and grouped() methods with Scala collections.
Handling YAML in Scala 3
Filed under Scala IO
Learn how to handle YAML in Scala 3
Type Lambdas in Scala 3
Filed under Scala Type System
Learn how to use type lambdas in Scala 3.
Different Ways to Selectively Run Tests With SBT
Filed under Build Tools, Testing
Learn different ways to selectively run tests with SBT.
Different Ways to Filter Elements From a Scala Collection
Filed under Scala Collections
Learn several ways to filter elements from a Scala collection.
Calculate Elapsed Time of a Method in Scala
Filed under Scala Basics
Learn various ways to calculate the elapsed time of a method in Scala.
Introduction to Fibers in ZIO
Filed under Scala Concurrency
Learn how to work with Fibers in ZIO.
Repeat and Retry in ZIO
Filed under Scala Concurrency
Learn how to repeat and retry with ZIO.
Case-Insensitive String Comparison Scala
Filed under Scala Strings
Learn how to do case-insensitive string comparison in Scala.
Introduction to Akka-Streams in Scala
Filed under Akka
An introduction to Akka-Streams in Scala.
Compare Floating Point Numbers in Scala
Filed under Scala Numbers
Learn how to compare floating point numbers in Scala
Different Ways to Reverse a Sequence in Scala
Filed under Scala Collections
Learn various ways to reverse a sequence in Scala.
Code Coverage Analysis Using sbt-scoverage
Filed under Build Tools, Testing
Learn how to do code coverage analysis using sbt-scoverage.
Find the Most Frequent Element in a Scala Collection
Filed under Scala Collections
Learn how to find the most frequent element in lists and other Scala collections.
Testing a Play Application
Filed under Play Framework, Testing
Learn how to test a Play application
Creating Aliases in SBT
Filed under Build Tools
Learn how to create aliases with SBT, Scala’s Build Tool.
The Either Type in Scala
Filed under Scala Basics
Learn about the Either Type in Scala.
locally Block In Scala
Filed under Scala Core
Learn about the locally Block in Scala.
Finding the First Element Matching a Condition in a Collection
Filed under Scala Collections
Learn how to find the first element matching a condition in a collection.
Introduction to the @threadUnsafe Annotation in Scala 3
Filed under Scala Concurrency
Learn how to use the @threadUnsafe annotation in Scala 3..
Difference Between NonFatal and Exception in Scala
Filed under Scala Exceptions
Learn the difference between NonFatal and Exception in Scala.
Finding the Difference Between Two Lists in Scala
Filed under Scala Collections
Learn how to find the difference between two lists in Scala.
How to Start and Quit a Scala REPL Session
Filed under Scala Basics
Learn how to start and quit a Scala REPL session.
Introduction to Macros in Scala 3
Filed under Scala Core
This article will provide an introduction to Macros in Scala 3
Joining Two DataFrames in Scala Spark
Filed under Apache Spark
Learn how to join Apache Spark DataFrames in Scala.
Safer Scala Code by Using WartRemover
Filed under Build Tools
Learn how to write safer scala code by using WartRemover.
Export Clause in Scala 3
Filed under Scala Basics
Learn how to use the Export Clause in Scala 3.
Generate Frequency Map of Strings in Scala
Filed under Scala Collections
Learn how to generate a frequency map of strings in Scala.
Get the Current Scala Version
Filed under Scala Core
Learn how to find the current Scala version.
Working with Redis in Scala
Filed under Libraries, Persistence
Learn how to work with Redis in Scala.
Comparing Scala REPL, SBT console, and SBT consoleQuick
Filed under Build Tools
Explore Scala REPL, SBT console, and SBT consoleQuick.
Testing an Akka HTTP Application
Learn how to test an Akka HTTP Application.
Filter “None” Values From a Map
Filed under Scala Collections
Learn how to filter “None” Values From a Map in Scala.
Introduction to ScalaPy
Filed under Libraries
Learn how to use Python from within Scala with ScalaPy.
AWScala – AWS SDK for Scala
Filed under Libraries
Learn about AWScala – the AWS SDK for Scala.
Writer Monad in Cats
Filed under Functional Programming
Learn how to use the writer monad in Cats.
Creating a New Scala Sbt Project Using Giter8
Filed under Build Tools
Learn how to create a new scala SBT project using Giter8.
Making Integration Testing Easier With TestContainers-scala
Filed under Testing
Learn how to create integration tests using Testcontainers-scala, a Scala wrapper around Testcontainers-java.
Logging in Scala Applications Using Scala-Logging
Filed under Libraries
Learn how to do logging in Scala Applications Using Scala-Logging
Introduction to Event Sourcing Using Akka Persistence
Filed under Akka
An introduction to Event Sourcing Using Akka Persistence.
Apache Pulsar Scala Client – pulsar4s
Filed under Libraries
Learn how to use the pulsar4s Scala Client for Apache Pulsar
Introduction to Akka HTTP in Scala
Filed under Akka
Learn how to use Akka HTTP in Scala.
@targetName Annotation in Scala 3
Filed under Scala Basics, Scala Core
Learn how the @targetName annotation work in Scala 3.
Querying Mappings in Scala Maps
Filed under Scala Collections
Learn how to query Maps for the existence of the query keys.
Introduction to Macros in Scala 2
Filed under Scala Core
Learn how Macros work with Scala 2
Using foreach() Method in Scala Collections
Filed under Scala Collections
Learn how to use foreach() Method in Scala Collections
Transparent Traits in Scala 3
Filed under Scala Basics
Learn transparent traits work in Scala 3
Introduction to scala-async
Filed under Scala Concurrency
Learn about scala-async and how to use its async() and await() constructs.
Find Min and Max of a Collection in Scala
Filed under Scala Collections
Learn how to find the min and max of different collections in Scala.
Remove All Whitespace From a String in Scala
Filed under Scala Strings
Learn to remove all whitespace from a string in Scala.
Setting up Global Configurations in SBT
Filed under Build Tools
Learn how to setup up Global Configurations in SBT.
Introduction to uTest
Introduction to uTest Scala Unit Testing Framework.
Remove an Item by Index From a List
Filed under Scala Collections
Learn how to remove an item by index from a list in Scala.
Count the Number of Occurrences of an Element in a List
Filed under Scala Collections
Learn how to count the number of occurrences of an element in a list in Scala.
Replace Elements in a Scala List by Index
Filed under Scala Collections
Learn how to replace elements in a Scala List by index.
Resource Handling in ZIO
Filed under Functional Programming, Scala IO
Learn how to manage resources with ZIO.
How to Execute OS Commands in Scala Using os-lib
Filed under Scala IO
Learn about the os-lib library, which helps us manage files and processes in Scala.
Shuffle Collections in Scala
Filed under Scala Collections
Learn how to shuffle Scala collections.
Introduction to Tapir
Filed under Scala Web
Explore Tapir and its capabilities.
Create a List With the Same Repeated Element
Filed under Scala Collections
Learn how to make a list in Scala by repeating the same element.
Get a Random Element From an Array in Scala
Filed under Scala Collections
Learn how to draw a random element from a Scala array.
Find the Element With Max Value in a Map in Scala
Filed under Scala Collections
Learn how to find the maximal element in a Scala Map.
Difference Between flatMap(), flatTap(), evalMap() and evalTap() in Cats Effect
Filed under Functional Programming
Explore the Cats Effect library.
Generate a List of Random Numbers in Scala
Filed under Scala Collections
Learn how to generate a list of random numbers.
Introduction to ZIO Streams
Filed under Scala Concurrency
Learn the basics of ZIO Streams, a purely functional streaming library that uses the ZIO runtime.
Guide to Scala ListMap
Filed under Scala Collections
Introduction to Scala’s ListMap data type.
List Files in a Directory in Scala
Filed under Scala IO
Learn how to list files in a local filesystem.
Product With Serializable in Scala
Filed under Scala Basics
Learn abour some type inference issues with ADTs and how they can be solved.
Match Types in Scala 3
Filed under Scala Pattern Matching, Scala Type System
Learn about match types in Scala 3 are and how we can use them to implement dependent methods.
Introduction to Lightbend Config
Filed under Libraries
Learn about the popular configuration management library for Scala – Lightbend Config.
Introduction to MUnit
Filed under Testing
Discover how to get started with MUnit for unit testing Scala code
Using the ScalaTest Runner
Filed under Testing
Discover how to use the ScalaTest Runner
Using forall in Scala
Filed under Scala Collections
Discover how to use forall in Scala
Guide to Scala ListSet
Filed under Scala Collections
Get a better understanding of ListSet in Scala