lux/data/struct/stack

Types

Stack

(type: (Stack a)
  (lux;List a))

Values

empty

Stack

(empty? stack)

(All [a] (-> (Stack a) lux;Bool))

(peek stack)

(All [a] (-> (Stack a) (lux;Maybe a)))

(pop stack)

(All [a] (-> (Stack a) (Stack a)))

(push value stack)

(All [a] (-> a (Stack a) (Stack a)))

(size stack)

(All [a] (-> (Stack a) lux;Nat))