Handbook
Glossary
peek-front ( deque -- obj )
Factor handbook
»
The language
»
Collections
»
Deques
Prev:
deque
Next:
peek-back ( deque -- obj )
Vocabulary
deques
Inputs
deque
a
deque
Outputs
obj
an
object
Word description
Returns the object at the front of the deque.
Errors
Throws an error if the deque is empty.
Definition
USING:
kernel
;
IN:
deques
:
peek-front
( deque -- obj )
peek-front*
[
drop
empty-deque
]
unless
;
inline