Skip to content

lux.data.struct.stack

StephenBDT edited this page Aug 12, 2017 · 1 revision

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))

Clone this wiki locally