kyo

package kyo

Members list

Type members

Classlikes

object Ansi

Provides ANSI color and formatting utilities for strings.

Provides ANSI color and formatting utilities for strings.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Ansi.type
sealed abstract class Chunk[A] extends Seq[A]

An immutable, efficient sequence of elements.

An immutable, efficient sequence of elements.

Chunk provides O(1) operations for many common operations like take, drop, and slice. It also provides efficient concatenation and element access.

Type parameters

A

the type of elements in this Chunk

Attributes

Companion
object
Supertypes
trait Seq[A]
trait SeqOps[A, Seq, Seq[A]]
trait Seq[A]
trait Equals
trait SeqOps[A, Seq, Seq[A]]
trait PartialFunction[Int, A]
trait Int => A
trait Iterable[A]
trait Iterable[A]
trait IterableFactoryDefaults[A, Seq]
trait IterableOps[A, Seq, Seq[A]]
trait IterableOnceOps[A, Seq, Seq[A]]
trait IterableOnce[A]
class Object
trait Matchable
class Any
Show all
Known subtypes
class Indexed[A]
Self type
Chunk[A]
object Chunk

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Chunk.type
opaque object Duration

Companion object for Duration type.

Companion object for Duration type.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Duration.type
opaque object Maybe

Companion object for Maybe type

Companion object for Maybe type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Maybe.type
opaque object Result

Companion object for Result type

Companion object for Result type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Result.type
object TypeMap

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
TypeMap.type

Types

type Duration = Value

Represents a duration of time.

Represents a duration of time.

Attributes

opaque type Maybe[+A]

Represents an optional value that can be either defined or empty.

Represents an optional value that can be either defined or empty.

Type parameters

A

the type of the optional value

Attributes

opaque type Result[+E, +A]

Represents a result that can be either a success, a failure or an unexpected panic.

Represents a result that can be either a success, a failure or an unexpected panic.

Type parameters

A

The type of the value in case of success

E

The type of the error in case of failure

Attributes

opaque type TypeMap[+A]

TypeMap provides a type-safe heterogeneous map implementation, allowing you to store and retrieve values of different types using their types as keys.

TypeMap provides a type-safe heterogeneous map implementation, allowing you to store and retrieve values of different types using their types as keys.

Type parameters

A

The type of values in the map

Attributes

Extensions

Extensions

extension (value: Long)
inline def asUnit(unit: Units): Duration

Creates a Duration from a specific unit.

Creates a Duration from a specific unit.

Value parameters

unit

The unit of time

Attributes

Returns

A Duration instance

inline def day: Duration
inline def days: Duration

Creates a Duration of days.

Creates a Duration of days.

Attributes

inline def hour: Duration
inline def hours: Duration

Creates a Duration of hours.

Creates a Duration of hours.

Attributes

inline def micro: Duration
inline def micros: Duration

Creates a Duration of microseconds.

Creates a Duration of microseconds.

Attributes

inline def milli: Duration
inline def millis: Duration

Creates a Duration of milliseconds.

Creates a Duration of milliseconds.

Attributes

inline def minute: Duration
inline def minutes: Duration

Creates a Duration of minutes.

Creates a Duration of minutes.

Attributes

inline def month: Duration
inline def months: Duration

Creates a Duration of months.

Creates a Duration of months.

Attributes

inline def nano: Duration
inline def nanos: Duration

Creates a Duration of nanoseconds.

Creates a Duration of nanoseconds.

Attributes

inline def second: Duration
inline def seconds: Duration

Creates a Duration of seconds.

Creates a Duration of seconds.

Attributes

inline def week: Duration
inline def weeks: Duration

Creates a Duration of weeks.

Creates a Duration of weeks.

Attributes

inline def year: Duration
inline def years: Duration

Creates a Duration of years.

Creates a Duration of years.

Attributes

extension (value: 1)
inline def day: Duration

Extension methods for the value 1 to create singular Durations.

Extension methods for the value 1 to create singular Durations.

Attributes

inline def hour: Duration

Extension methods for the value 1 to create singular Durations.

Extension methods for the value 1 to create singular Durations.

Attributes

inline def micro: Duration

Extension methods for the value 1 to create singular Durations.

Extension methods for the value 1 to create singular Durations.

Attributes

inline def milli: Duration

Extension methods for the value 1 to create singular Durations.

Extension methods for the value 1 to create singular Durations.

Attributes

inline def minute: Duration

Extension methods for the value 1 to create singular Durations.

Extension methods for the value 1 to create singular Durations.

Attributes

inline def month: Duration

Extension methods for the value 1 to create singular Durations.

Extension methods for the value 1 to create singular Durations.

Attributes

inline def nano: Duration

Extension methods for the value 1 to create singular Durations.

Extension methods for the value 1 to create singular Durations.

Attributes

inline def second: Duration

Extension methods for the value 1 to create singular Durations.

Extension methods for the value 1 to create singular Durations.

Attributes

inline def week: Duration

Extension methods for the value 1 to create singular Durations.

Extension methods for the value 1 to create singular Durations.

Attributes

inline def year: Duration

Extension methods for the value 1 to create singular Durations.

Extension methods for the value 1 to create singular Durations.

Attributes