rd-core
Toggle table of contents
2025.2.2-beta1
jvm
Platform filter
jvm
Switch theme
Search in API
rd-core
rd-core
/
com.jetbrains.rd.util.collections
/
ImmutableStack
Immutable
Stack
class
ImmutableStack
<
T
:
Any
>
:
Iterable
<
T
>
Members
Members & Extensions
Types
Companion
Link copied to clipboard
object
Companion
Properties
is
Empty
Link copied to clipboard
val
isEmpty
:
Boolean
Functions
fold
Link copied to clipboard
fun
<
TSource
,
TResult
:
Any
>
Iterable
<
IPropertyView
<
TSource
>
>
.
fold
(
lifetime
:
Lifetime
,
initial
:
TResult
,
func
:
(
TResult
,
TSource
)
->
TResult
)
:
OptProperty
<
TResult
>
fold
Opt
Link copied to clipboard
fun
<
TSource
:
Any
,
TResult
:
Any
>
Iterable
<
IOptPropertyView
<
TSource
>
>
.
foldOpt
(
lifetime
:
Lifetime
,
initial
:
TResult
,
func
:
(
TResult
,
TSource
)
->
TResult
)
:
OptProperty
<
TResult
>
iterator
Link copied to clipboard
open
operator override
fun
iterator
(
)
:
Iterator
<
T
>
peek
Link copied to clipboard
fun
peek
(
)
:
T
?
pop
Link copied to clipboard
fun
pop
(
)
:
Pair
<
ImmutableStack
<
T
>
,
T
>
?
push
Link copied to clipboard
fun
push
(
value
:
T
)
:
ImmutableStack
<
T
>
tail
Link copied to clipboard
fun
<
T
:
Any
>
ImmutableStack
<
T
>
.
tail
(
)
:
ImmutableStack
<
T
>