Skip to content

oolong / oolong.random / nextLong

nextLong

(common) fun <Msg :Any> nextLong(msg: suspend CoroutineScope.(Long) -> Msg):Effect<Msg> (source) fun <Msg :Any> nextLong(until:Long, msg: suspend CoroutineScope.(Long) -> Msg):Effect<Msg> (source) fun <Msg :Any> nextLong(from:Long, until:Long, msg: suspend CoroutineScope.(Long) -> Msg):Effect<Msg> (source) fun <Msg :Any> nextLong(range:LongRange, msg: suspend CoroutineScope.(Long) -> Msg):Effect<Msg> (source)

Call Random.nextLong with a mapping of Long to Msg.

Parameters

msg - map function of Long to Msg

Return Effect of Msg for the generated Long