Single

data class Single<out A>(val first: A)

Constructors

Link copied to clipboard
constructor(first: A)

Properties

Link copied to clipboard
val first: A

Functions

Link copied to clipboard
infix fun <A, B> Single<A>.to(b: B): Pair<A, B>

元组扩展,可以使用 a to b to c 这样的连续中缀函数创建更多元素的元组

Link copied to clipboard
fun <T> Single<T>.toList(): List<T>
Link copied to clipboard
open override fun toString(): String