English
Appearance
(all (E) (-> (box-t E) (maybe-t E)))
Get the value from a box. Returns (nothing) if empty, (just value) otherwise.
(nothing)
(just value)
(define box (make-box)) (box-get-maybe box) ;; => (nothing) (box-put box 42) (box-get-maybe box) ;; => (just 42)