Duo

class Duo<F, S>

A class that hold two values, the first of generic type F, the second of generic type S. Duo are immutable. I would like to call this Pair, but I don't want a name clash with Kotlin. I also don't want Feather's runtime to depend on Kotlin's runtime, so I cannot use Kotlin's Pair. Therefore Feather has Duo.

Constructors

Link copied to clipboard
constructor(first: F, second: S)