CharacterPair

data class CharacterPair(val left: Char, val right: Char)(source)

A data class representing a pair of characters.

This class is implemented as a record in the JVM to optimize memory usage and ensure immutability. Each instance of this class stores two characters, referred to as "left" and "right".

Constructors

Link copied to clipboard
constructor(left: Char, right: Char)

Creates an immutable pair of characters.

Properties

Link copied to clipboard
val left: Char

The first character in the pair.

Link copied to clipboard
val right: Char

The second character in the pair.