peek

Duplicates the top value of range without modifying the stack.

pragma(inline)
peek
(
O
T
)
(
ref T range
)
if (
(
is(O == LIFO) ||
is(O == FILO)
)
&&
)

Parameters

O

Stack order to duplicate the value using.

range T

The range.

Return Value

Type: ElementType!T

The duplicated value from the top of the stack.

Remarks: Defaults to LIFO.

Meta