Method in collections::list · List coil-stdlib

List::peek_front

pub fn peek_front() -> Option<T>
Import
use collections::list::{List};
Source: src/collections/list.hy

Returns the front value without removing it, or None when the list is empty.

Called on a List value as value.peek_front(…).

Returns#

Option<T>

See also#

↑ ↓ navigate ↵ open