Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The channel aliased as CURRENT in this store, or null if none is set.

Link copied to clipboard

Every alias, other than CURRENT itself, under which current is also reachable.

Link copied to clipboard
Link copied to clipboard
abstract val keys: Set<String>
Link copied to clipboard
expect abstract val size: Int
Link copied to clipboard
abstract val stdIn: InputChannel<String>

The channel aliased STDIN, i.e. this store's standard input.

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun aliasesOf(channel: InputChannel<String>): Sequence<String>

Returns every alias under which channel is reachable in this store, excluding CURRENT.

Link copied to clipboard
open fun close(channel: InputChannel<String>): InputStore

Channel.closes channel and returns a copy of this store without any alias pointing to it.

Link copied to clipboard
abstract fun containsKey(key: String): Boolean
Link copied to clipboard
abstract fun containsValue(value: InputChannel<String>): Boolean
Link copied to clipboard
abstract fun findByTerm(streamTerm: Term): Sequence<InputChannel<String>>

Returns every channel in this store whose Channel.streamTerm unifies with streamTerm.

Link copied to clipboard
abstract operator fun get(key: String): InputChannel<String>?
Link copied to clipboard
expect abstract fun isEmpty(): Boolean
Link copied to clipboard
open operator fun minus(other: String): InputStore

Returns a copy of this store without the entry aliased other (if any).

open operator fun minus(others: Iterable<String>): InputStore
abstract operator fun minus(others: Sequence<String>): InputStore

Returns a copy of this store without the entries aliased in others.

open fun minus(other: String, vararg others: String): InputStore

Returns a copy of this store without the entries aliased other or in others.

Link copied to clipboard
open operator fun plus(other: Pair<String, InputChannel<String>>): InputStore

Returns a copy of this store with other added (overriding an existing entry with the same alias).

open operator fun plus(others: Iterable<Pair<String, InputChannel<String>>>): InputStore
abstract operator fun plus(others: Map<String, InputChannel<String>>): InputStore
open operator fun plus(others: Sequence<Pair<String, InputChannel<String>>>): InputStore

Returns a copy of this store with every entry of others added (overriding same-named existing ones).

open fun plus(first: Pair<String, InputChannel<String>>, vararg others: Pair<String, InputChannel<String>>): InputStore

Returns a copy of this store with first and others added (overriding same-named existing entries).

Link copied to clipboard
abstract fun setCurrent(channel: InputChannel<String>): InputStore

Returns a copy of this store with CURRENT pointing to channel.

abstract fun setCurrent(alias: String): InputStore

Returns a copy of this store with CURRENT pointing to the channel already aliased as alias.

Link copied to clipboard
abstract fun setStdIn(channel: InputChannel<String>): InputStore

Returns a copy of this store with stdIn (and the STDIN alias) replaced by channel.